Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MattBSG committed Nov 20, 2024
2 parents ece088b + a1c7af6 commit 4a92837
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ async def _banning(
# Don't waste an API call with a DM if we don't have the user as a guild member
try:
await member.send(
tools.format_pundm('ban', reason, interaction.user, auto=interaction.user.id == self.bot.user.id)
tools.format_pundm(
'ban', reason, interaction.user, auto=interaction.user.id == self.bot.user.id
)
)

except (discord.Forbidden, AttributeError):
Expand Down

0 comments on commit 4a92837

Please sign in to comment.