Fix NotOwner error #7

Merged
PacketParker merged 1 commits from dev into main 2024-09-18 17:34:34 -05:00
2 changed files with 4 additions and 3 deletions

View File

@ -79,6 +79,10 @@ class Stats(commands.Cog):
connection.close()
await ctx.send(embed=embed)
@stats.error
async def stats_error(self, ctx, error):
return
async def setup(bot):
await bot.add_cog(Stats(bot))

View File

@ -92,8 +92,5 @@ class Tree(app_commands.CommandTree):
except discord.errors.InteractionResponded:
await interaction.followup.send(embed=embed, ephemeral=True)
elif isinstance(error, NotOwner):
pass
else:
raise error