We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e05449 commit fd63972Copy full SHA for fd63972
core/utils.py
@@ -79,7 +79,7 @@ def format_preview(messages: typing.List[typing.Dict[str, typing.Any]]):
79
if message.get("type") in ("note", "internal"):
80
continue
81
author = message["author"]
82
- content = message["content"].replace("\n", " ")
+ content = str(message["content"]).replace("\n", " ")
83
name = author["name"] + "#" + str(author["discriminator"])
84
prefix = "[M]" if author["mod"] else "[R]"
85
out += truncate(f"`{prefix} {name}:` {content}", max=75) + "\n"
0 commit comments