improved bot ux/ui

This commit is contained in:
2021-11-06 11:21:44 +01:00
parent f8e72443f4
commit 4cbc56e4e2
3 changed files with 82 additions and 24 deletions
+11
View File
@@ -0,0 +1,11 @@
from discord.embeds import Embed
from context import CustomContext
from discord.ext.commands import CommandError
class EmbeddedCommandException(CommandError):
def __init__(self, embed: Embed) -> None:
self.embed = embed
async def send(self, ctx: CustomContext):
await ctx.send(embed=self.embed)