fix: error messages not sending because of not calling the method properly
This commit is contained in:
parent
17a5a952e2
commit
fb2b3037bd
1 changed files with 2 additions and 2 deletions
|
@ -64,10 +64,10 @@ class Shortmute(commands.Cog):
|
||||||
"readable_duration": readable_duration
|
"readable_duration": readable_duration
|
||||||
})
|
})
|
||||||
if duration > 30:
|
if duration > 30:
|
||||||
await interaction.response(content=f"{readable_duration} is longer than the 30 minutes you are allowed to shortmute users for.", ephemeral=True)
|
await interaction.response.send_message(content=f"{readable_duration} is longer than the 30 minutes you are allowed to shortmute users for.", ephemeral=True)
|
||||||
return
|
return
|
||||||
elif duration < 1:
|
elif duration < 1:
|
||||||
await interaction.response(content=f"Please shortmute the user for longer than {readable_duration}! The maximum duration is 30 minutes.", ephemeral=True)
|
await interaction.response.send_message(content=f"Please shortmute the user for longer than {readable_duration}! The maximum duration is 30 minutes.", ephemeral=True)
|
||||||
return
|
return
|
||||||
embed = discord.Embed(title="Are you sure?", description=f"**Moderator:** {interaction.user.mention}\n**Target:** {target.mention}\n**Duration:** {readable_duration}\n**Reason:** `{reason}`", color=await self.bot.get_embed_color(None))
|
embed = discord.Embed(title="Are you sure?", description=f"**Moderator:** {interaction.user.mention}\n**Target:** {target.mention}\n**Duration:** {readable_duration}\n**Reason:** `{reason}`", color=await self.bot.get_embed_color(None))
|
||||||
if evidence:
|
if evidence:
|
||||||
|
|
Loading…
Reference in a new issue