Skip to content

Commit

Permalink
in case we need these
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Aug 12, 2024
1 parent a1861e0 commit 9856533
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cogs/sysmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ async def handle(self, ctx, error):
await ctx.send(f'{self.bot.ui_emojis.error} {error}')
elif isinstance(error, commands.CheckFailure):
await ctx.send(f'{self.bot.ui_emojis.error} You do not have permissions to run this command.')
elif isinstance(error, commands.NoPrivateMessage):
await ctx.send(f'{self.bot.ui_emojis.error} You can only run this command in servers.')
elif isinstance(error, commands.PrivateMessageOnly):
await ctx.send(f'{self.bot.ui_emojis.error} You can only run this command in DMs.')
elif isinstance(error, commands.CommandOnCooldown):
t = int(error.retry_after)
await ctx.send(f'{self.bot.ui_emojis.error} You\'re on cooldown. Try again in **{t // 60}** minutes and **{t % 60}** seconds.')
Expand Down

0 comments on commit 9856533

Please sign in to comment.