[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:
zephyrkul
2018-09-14 17:48:31 -06:00
committed by Kowlin
parent 1a9216b522
commit 2784730f7f
3 changed files with 6 additions and 7 deletions

View File

@@ -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:")