formatting fixes
This commit is contained in:
parent
8f39089324
commit
5a514f86f6
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ class Moderation(commands.Cog):
|
|||
await target.timeout(parsed_time)
|
||||
response = await ctx.message.reply(f"{target.mention} has been timed out for {str(parsed_time)}!\n**Reason** - `{reason}`")
|
||||
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)
|
||||
except revolt.errors.HTTPError:
|
||||
await response.edit(content=f"{response.content}\n*Failed to send DM, user likely has the bot blocked.*")
|
||||
|
@ -64,7 +64,7 @@ class Moderation(commands.Cog):
|
|||
await target.timeout(parsed_time)
|
||||
response = await ctx.message.reply(f"{target.mention} has had their timeout removed!\n**Reason** - `{reason}`")
|
||||
try:
|
||||
embeds = [revolt.SendableEmbed(title="Untimed Out", description=f"You have been untimed out in {ctx.server.name}.\n### Reason\n`{reason}`", colour="#5d82d1")]
|
||||
embeds = [revolt.SendableEmbed(title="Timeout Removed", description=f"Your timeout has been removed in {ctx.server.name}.\n### Reason\n`{reason}`", colour="#5d82d1")]
|
||||
await target.send(embeds=embeds)
|
||||
except revolt.errors.HTTPError:
|
||||
await response.edit(content=f"{response.content}\n*Failed to send DM, user likely has the bot blocked.*")
|
||||
|
|
Loading…
Reference in a new issue