mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 08:57:46 +00:00
fix snipe formatting
This commit is contained in:
parent
90dc03da6f
commit
36d5fc331e
1 changed files with 5 additions and 4 deletions
|
@ -5,6 +5,7 @@ from discord.ext import commands
|
|||
import datetime
|
||||
from collections import defaultdict, deque
|
||||
import discord
|
||||
import inspect
|
||||
from discord.utils import escape_markdown as es_md
|
||||
import platform
|
||||
|
||||
|
@ -106,14 +107,14 @@ class Miscellanious(
|
|||
message, ts = log
|
||||
embed.add_field(
|
||||
name=str(i) + (" (latest)" if not i else ""),
|
||||
value=f"""
|
||||
Author: {message.author.mention} (ID: {message.author.id}, Plain: {discord.utils.escape_markdown(str(message.author))})
|
||||
value=inspect.cleandoc(
|
||||
f"""Author: {message.author.mention} (ID: {message.author.id}, Plain: {discord.utils.escape_markdown(str(message.author))})
|
||||
Deleted at: <t:{ts}:F> (Relative: <t:{ts}:R>)
|
||||
Content:
|
||||
```
|
||||
{message.content.replace('`', f'{zwsp}`{zwsp}')}
|
||||
```
|
||||
""", # zero-width spaces, or it will break.
|
||||
```"""
|
||||
), # zero-width spaces, or it will break.
|
||||
inline=False,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue