mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 17:07:45 +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
|
import datetime
|
||||||
from collections import defaultdict, deque
|
from collections import defaultdict, deque
|
||||||
import discord
|
import discord
|
||||||
|
import inspect
|
||||||
from discord.utils import escape_markdown as es_md
|
from discord.utils import escape_markdown as es_md
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
|
@ -106,14 +107,14 @@ class Miscellanious(
|
||||||
message, ts = log
|
message, ts = log
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name=str(i) + (" (latest)" if not i else ""),
|
name=str(i) + (" (latest)" if not i else ""),
|
||||||
value=f"""
|
value=inspect.cleandoc(
|
||||||
Author: {message.author.mention} (ID: {message.author.id}, Plain: {discord.utils.escape_markdown(str(message.author))})
|
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>)
|
Deleted at: <t:{ts}:F> (Relative: <t:{ts}:R>)
|
||||||
Content:
|
Content:
|
||||||
```
|
```
|
||||||
{message.content.replace('`', f'{zwsp}`{zwsp}')}
|
{message.content.replace('`', f'{zwsp}`{zwsp}')}
|
||||||
```
|
```"""
|
||||||
""", # zero-width spaces, or it will break.
|
), # zero-width spaces, or it will break.
|
||||||
inline=False,
|
inline=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue