feat(bot): ✨ Trim blocked words to 10 characters.

This commit is contained in:
Nyeki.py
2024-10-23 15:33:06 -03:00
parent 548566ff7c
commit 5375ae4e95
+1 -1
View File
@@ -819,7 +819,7 @@ class Calls(base.Cog):
if blocked_word: if blocked_word:
try: try:
await self.bot.get_partial_messageable(channel_id).send( await self.bot.get_partial_messageable(channel_id).send(
f"Your message wasn't delivered!\nBlocked word: `{blocked_word}`." f"Your message wasn't delivered!\nBlocked word: `{formatting.trim(blocked_word, 10)}`."
) )
except errors.DiscordException: except errors.DiscordException: