fix: confirmation skipped is now logged properly
This commit is contained in:
parent
33d966c0e5
commit
f862affafc
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class Shortmute(commands.Cog):
|
||||||
await message.edit(content="Could not message the target, user most likely has Direct Messages disabled.")
|
await message.edit(content="Could not message the target, user most likely has Direct Messages disabled.")
|
||||||
logging_channels_list = await self.config.guild(interaction.guild).logging_channels()
|
logging_channels_list = await self.config.guild(interaction.guild).logging_channels()
|
||||||
if logging_channels_list:
|
if logging_channels_list:
|
||||||
logging_embed = discord.Embed(title="User Shortmuted", description=f"**Moderator:** {interaction.user.mention} ({interaction.user.id})\n**Target:** {target.mention} ({target.id})\n**Duration:** {readable_duration}\n**Reason:** `{reason}`\n**Confirmation Skipped:** False", color=await self.bot.get_embed_color(None))
|
logging_embed = discord.Embed(title="User Shortmuted", description=f"**Moderator:** {interaction.user.mention} ({interaction.user.id})\n**Target:** {target.mention} ({target.id})\n**Duration:** {readable_duration}\n**Reason:** `{reason}`\n**Confirmation Skipped:** True", color=await self.bot.get_embed_color(None))
|
||||||
logging_embed.set_footer(text="/shortmute")
|
logging_embed.set_footer(text="/shortmute")
|
||||||
if evidence:
|
if evidence:
|
||||||
logging_embed.set_image(url=evidence)
|
logging_embed.set_image(url=evidence)
|
||||||
|
|
Loading…
Reference in a new issue