diff --git a/cogs/admin.py b/cogs/admin.py index e6a5518..9e1b47a 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -69,7 +69,6 @@ class AdminCog(Cog): return try: - await self.bot.fetch_emojis(ctx.guild) emojis = await self.bot.fetch_emojis(ctx.guild) emoji = None for e in emojis: @@ -101,7 +100,6 @@ class AdminCog(Cog): return try: - await self.bot.fetch_emojis(ctx.guild) emojis = await self.bot.fetch_emojis(ctx.guild) emoji = None for e in emojis: @@ -132,7 +130,6 @@ class AdminCog(Cog): return try: - await self.bot.fetch_emojis(ctx.guild) emojis = await self.bot.fetch_emojis(ctx.guild) emoji = None for e in emojis: @@ -151,6 +148,6 @@ class AdminCog(Cog): await ctx.send(f"Error: {e}") -def setup(bot: commands.Bot) -> None: +async def setup(bot: commands.Bot) -> None: """Register the admin cog with the bot.""" - bot.add_cog(AdminCog(bot)) + await bot.add_cog(AdminCog(bot))