misc: improved logging embed

This commit is contained in:
Seaswimmer 2023-08-08 01:33:34 -04:00
parent 985b2d4919
commit 1252e19668
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -111,7 +111,8 @@ class Shortmute(commands.Cog):
await old_message.edit(content="Could not message the target, user most likely has Direct Messages disabled.") await old_message.edit(content="Could not message the target, user most likely has Direct Messages disabled.")
logging_channels_list = await self.config.guild(old_interaction.guild).logging_channels() logging_channels_list = await self.config.guild(old_interaction.guild).logging_channels()
if logging_channels_list: if logging_channels_list:
logging_embed = discord.Embed(title="Shortmute", description=f"Moderator: {old_interaction.user.mention} ({old_interaction.user.id})\nTarget: {target.mention} ({target.id})\nDuration: {readable_duration}\nReason: `{reason}`", color=color) logging_embed = discord.Embed(title="User Shortmuted", description=f"Moderator: {old_interaction.user.mention} ({old_interaction.user.id})\nTarget: {target.mention} ({target.id})\nDuration: {readable_duration}\nReason: `{reason}`", color=color)
logging_embed.set_footer(text="/shortmute")
if evidence: if evidence:
logging_embed.set_image(url=evidence) logging_embed.set_image(url=evidence)
for channel_id in logging_channels_list: for channel_id in logging_channels_list: