Skip to content

Commit

Permalink
fix: make requested comment changes
Browse files Browse the repository at this point in the history
  • Loading branch information
onerandomusername committed Sep 29, 2021
1 parent 34e7696 commit 3285dd0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modmail/extensions/utils/error_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ async def handle_bot_missing_perms(
not_responded = False
elif bot_perms >= discord.Permissions(send_messages=True):
# make a message as similar to the embed, using as few permissions as possible
# this is the only place we send a standard message instead of an embed, so no helper methods
# this is the only place we send a standard message instead of an embed
# so no helper methods are necessary
await ctx.send(
"**Permissions Failure**\n\n"
"I am missing the permissions required to properly execute your command."
Expand Down Expand Up @@ -123,7 +124,9 @@ async def handle_check_failure(
elif isinstance(error, commands.NoPrivateMessage):
title = "Server Only"
elif isinstance(error, commands.BotMissingPermissions):
# defer handling BotMissingPermissions to a method, since this can be problematic
# defer handling BotMissingPermissions to a method
# the error could be that the bot is unable to send messages, which would cause
# the error handling to fail
await self.handle_bot_missing_perms(ctx, error)
return None
else:
Expand Down

0 comments on commit 3285dd0

Please sign in to comment.