Files
TuneBot/utils/exceptions.py
T
2021-11-19 21:10:29 +01:00

13 lines
323 B
Python

from discord.embeds import Embed
from discord.ext.commands import CommandError
from context import CustomContext
class EmbeddedCommandException(CommandError):
def __init__(self, embed: Embed) -> None:
self.embed = embed
async def send(self, ctx: CustomContext):
await ctx.send(embed=self.embed)