mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 16:50:10 +00:00
Major command handling refactor
This commit is contained in:
parent
0869f94cdf
commit
f067485e88
15 changed files with 463 additions and 355 deletions
|
|
@ -81,19 +81,6 @@ async def get_member_fuzzy(conn, system_id: int, key: str, system_only=True) ->
|
|||
if member is not None:
|
||||
return member
|
||||
|
||||
def make_default_embed(message):
|
||||
embed = discord.Embed()
|
||||
embed.colour = discord.Colour.blue()
|
||||
embed.description = message
|
||||
return embed
|
||||
|
||||
def make_error_embed(message):
|
||||
embed = discord.Embed()
|
||||
embed.colour = discord.Colour.dark_red()
|
||||
embed.description = message
|
||||
return embed
|
||||
|
||||
|
||||
async def generate_system_info_card(conn, client: discord.Client, system: System) -> discord.Embed:
|
||||
card = discord.Embed()
|
||||
card.colour = discord.Colour.blue()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue