Miscellaneous¶
This section documents everything in the commands extension that doesn’t fit into any other section, but isn’t big enough to have its own section.
Classes¶
Paginator¶
- class disnake.ext.commands.Paginator(prefix='```', suffix='```', max_size=2000, linesep='\n')[source]¶
- A class that aids in paginating code blocks for Discord messages. - len(x)
- Returns the total number of characters in the paginator. 
 - linesep¶
- The character string inserted between lines. e.g. a newline character. - New in version 1.7. - Type:
 
 - add_line(line='', *, empty=False)[source]¶
- Adds a line to the current page. - If the line exceeds the - max_sizethen an exception is raised.- Parameters:
- Raises:
- RuntimeError – The line was too big for the current - max_size.