formatting fix
This commit is contained in:
parent
9a737d5d74
commit
85a0ad8d75
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class Moderation(commands.Cog):
|
||||||
await target.timeout(parsed_time)
|
await target.timeout(parsed_time)
|
||||||
response = await ctx.message.reply(f"{target.mention} has been timed out for {str(parsed_time)}!\n**Reason** - `{reason}`")
|
response = await ctx.message.reply(f"{target.mention} has been timed out for {str(parsed_time)}!\n**Reason** - `{reason}`")
|
||||||
try:
|
try:
|
||||||
embeds = [revolt.SendableEmbed(title="Timed Out", description=f"You have been timed out for {str(parsed_time)} in {ctx.server.name}.\n### Reason\n`{reason}", colour="#5d82d1")]
|
embeds = [revolt.SendableEmbed(title="Timed Out", description=f"You have been timed out for {str(parsed_time)} in {ctx.server.name}.\n### Reason\n`{reason}`", colour="#5d82d1")]
|
||||||
await target.send(embeds=embeds)
|
await target.send(embeds=embeds)
|
||||||
except revolt.errors.HTTPError:
|
except revolt.errors.HTTPError:
|
||||||
await response.edit(content=f"{response.content}\n*Failed to send DM, user likely has the bot blocked.*")
|
await response.edit(content=f"{response.content}\n*Failed to send DM, user likely has the bot blocked.*")
|
||||||
|
|
Loading…
Reference in a new issue