SGA-A / c2c

Source code for the custom app exclusive to cc, where most interactions begin and end.
MIT License
1 stars 0 forks source link

Can't display paginators in non-interaction based contexts #108

Closed SGA-A closed 5 months ago

SGA-A commented 5 months ago

Describe the bug Quite a big problem we've encountered across all spaces of the bot, that the paginator is unable to work by providing a commands.Context instead of a discord.Interaction. This is a problem on certain hybrid commands that require the use of a paginator.

Expected behavior Paginator works in all contexts, not just discord.Interaction`.

Additional context Paginators is a way of creating pages. As an analogy, think of pages in a real life book, you flick each page to view the contents of what the author is conveying. This is what a paginator is, but instead of actual pages, in discord we use a view to create buttons that jump to the first, previous, next and last page. Since using a button is considered an interaction, it needs to take in an interaction from the command.

SGA-A commented 5 months ago

It should be noted that this only works currently on the PaginationSimple class for hybrid(s) and normal slash commands interoperably.