diff options
| author | slice <[email protected]> | 2019-03-16 20:24:31 -0700 |
|---|---|---|
| committer | Danny <[email protected]> | 2019-03-16 23:24:31 -0400 |
| commit | 66af80511f63cb5cb24b06c65bb8aa4697419cfc (patch) | |
| tree | ed175c4b8534136fb0aaa1107f8c7afc89af6aa8 /docs/locale | |
| parent | Consider news channel type as a TextChannel (diff) | |
| download | discord.py-66af80511f63cb5cb24b06c65bb8aa4697419cfc.tar.xz discord.py-66af80511f63cb5cb24b06c65bb8aa4697419cfc.zip | |
Fix pagination of huge command help messages (> ~2,000 chars)
Previously, calls to add_line in add_command_formatting of default help
commands would fail if the command's help message would overflow the
current page. This would also result in silent failure as the
RuntimeError raised from add_line is never caught.
This patch adds behavior that adds lines individually should it raise,
which guarantees safe pagination as long as every line is smaller than
the maximum page size, which is highly unlikely.
Diffstat (limited to 'docs/locale')
0 files changed, 0 insertions, 0 deletions