diff options
Diffstat (limited to 'bot_utils.py')
-rw-r--r-- | bot_utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bot_utils.py b/bot_utils.py index 98fa8de..bed54d7 100644 --- a/bot_utils.py +++ b/bot_utils.py @@ -1,5 +1,5 @@ -import discord -from discord.ext import commands +import nextcord +from nextcord.ext import commands async def parse_error(ctx, error): if hasattr(ctx.command, 'on_error'): @@ -12,7 +12,7 @@ async def parse_error(ctx, error): if isinstance(error, commands.CommandNotFound): pass else: - embed = discord.Embed(title="An error occurred!", color=0xc71a1a) + embed = nextcord.Embed(title="An error occurred!", color=0xc71a1a) embed.set_thumbnail(url="https://cdn.discordapp.com/emojis/798974923954978817.png?v=1") embed.add_field(name=type(error).__name__, value=error, inline=False) embed.set_footer(text="Tiny Potato Bot") @@ -21,7 +21,7 @@ async def parse_error(ctx, error): class MyHelpCommand(commands.MinimalHelpCommand): async def send_pages(self): destination = self.get_destination() - e = discord.Embed(color=0xa37dca, description='') + e = nextcord.Embed(color=0xa37dca, description='') for page in self.paginator.pages: e.description += page await destination.send(embed=e) \ No newline at end of file |