about summary refs log tree commit diff stats
path: root/bot_utils.py
diff options
context:
space:
mode:
authorredcreeper14385 <mounderfod@gmail.com>2021-08-31 17:56:00 +0100
committerredcreeper14385 <mounderfod@gmail.com>2021-08-31 17:56:00 +0100
commit45ddeff3ec499e79d82ee265d729c8e0c453e020 (patch)
treec643caf0c078ba505c3e6bcfd157a44b265f536d /bot_utils.py
parent75045f045f1fc524b6a0f5e7b40a87dffc377cdf (diff)
downloadtiny-potato-bot-45ddeff3ec499e79d82ee265d729c8e0c453e020.tar.gz
Port to nextcord :D
Diffstat (limited to 'bot_utils.py')
-rw-r--r--bot_utils.py8
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