Compare commits
No commits in common. "41e3c3f278a5b35060199d2b90db219918d17a22" and "8f52543e3a297c90dcc981b5d8b3c6e49779607e" have entirely different histories.
41e3c3f278
...
8f52543e3a
1 changed files with 7 additions and 4 deletions
|
@ -34,7 +34,7 @@ class Shortmute(commands.Cog):
|
||||||
An image link to evidence for the shortmute, do not use with evidence_image
|
An image link to evidence for the shortmute, do not use with evidence_image
|
||||||
evidence_image: discord.Attachment = None
|
evidence_image: discord.Attachment = None
|
||||||
An image file used as evidence for the shortmute, do not use with evidence_link
|
An image file used as evidence for the shortmute, do not use with evidence_link
|
||||||
skip_confirmation: bool = True
|
skip_confirmation: bool = False
|
||||||
This allows you skip the confirmation prompt and immediately shortmute the user.
|
This allows you skip the confirmation prompt and immediately shortmute the user.
|
||||||
"""
|
"""
|
||||||
disable_dateutil()
|
disable_dateutil()
|
||||||
|
@ -69,11 +69,14 @@ class Shortmute(commands.Cog):
|
||||||
return
|
return
|
||||||
if duration == 1 or duration == -1:
|
if duration == 1 or duration == -1:
|
||||||
readable_duration = f"{duration} minute"
|
readable_duration = f"{duration} minute"
|
||||||
|
passed_info.update({
|
||||||
|
"readable_duration": readable_duration
|
||||||
|
})
|
||||||
else:
|
else:
|
||||||
readable_duration = f"{duration} minutes"
|
readable_duration = f"{duration} minutes"
|
||||||
passed_info.update({
|
passed_info.update({
|
||||||
"readable_duration": readable_duration
|
"readable_duration": readable_duration
|
||||||
})
|
})
|
||||||
if duration > 30:
|
if duration > 30:
|
||||||
await interaction.response.send_message(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
|
||||||
|
|
Loading…
Reference in a new issue