mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[V3] Utilize shorten_by (#2131)
* utilize shorten_by otherwise you get errors * trivia shorten_by * warnings shorten_by max username length is 32 characters * black formatting
This commit is contained in:
@@ -422,7 +422,7 @@ class Core(CoreLogic):
|
||||
destination = ctx.channel
|
||||
|
||||
if self.bot._last_exception:
|
||||
for page in pagify(self.bot._last_exception):
|
||||
for page in pagify(self.bot._last_exception, shorten_by=10):
|
||||
await destination.send(box(page, lang="py"))
|
||||
else:
|
||||
await ctx.send("No exception has occurred yet")
|
||||
@@ -1070,7 +1070,7 @@ class Core(CoreLogic):
|
||||
if not locale_list:
|
||||
await ctx.send("No languages found.")
|
||||
return
|
||||
pages = pagify("\n".join(locale_list))
|
||||
pages = pagify("\n".join(locale_list), shorten_by=26)
|
||||
|
||||
await ctx.send_interactive(pages, box_lang="Available Locales:")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user