Skip to content

Commit

Permalink
error handling on dming modmail
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsbirb committed Feb 18, 2024
1 parent 3dc286a commit 72b3e6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cogs/Events/AstroSupport/blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def on_guild_join(self, guild):

if blacklist:
await guild.leave()
print(f'Left guild {guild.name} owned by blacklisted user {guild.owner}')
print(f'Left guild {guild.name} owned by blacklisted user {guild.owner.name}')
else:
pass

Expand Down
4 changes: 2 additions & 2 deletions Cogs/Modules/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ async def close2(self, ctx, *, reason = None):
embed.add_field(name="<:reason:1202773873095868476> Reason", value=reason, inline=True)
await user.send(f"{tick} Your modmail channel has been closed.", embed=embed)
except discord.Forbidden:
pass
print("Couldn't send message to user.")
pass
transcriptchannelresult = await transcriptschannel.find_one({'guild_id': ctx.guild.id})
if transcriptchannelresult:
transcriptchannelid = transcriptchannelresult['channel_id']
Expand Down

0 comments on commit 72b3e6c

Please sign in to comment.