Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dozer/cogs/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ async def mod_log(self, actor: discord.Member, action: str, target: Union[discor
modlog_channel = await GuildModLog.get_by(guild_id=actor.guild.id) if guild_override is None else \
await GuildModLog.get_by(guild_id=guild_override)
if orig_channel is not None:
await orig_channel.send(embed=modlog_embed)
try:
await orig_channel.send(embed=modlog_embed)
except discord.Forbidden:
await orig_channel.send(f"{target} was successfully {action} by {actor}!")
if len(modlog_channel) != 0:
if global_modlog:
channel = self.bot.get_guild(actor.guild.id if guild_override is None else guild_override). \
Expand Down