You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The /balls list command currently fetches the entire list of countryballs of a user, with all columns. This ends up taking a lot of time for users with insane amounts of countryballs.
This could be done my modifying CountryballsSource, currently inheriting from the source menus.ListPageSource, to inherit from menus.AsyncIteratorPageSource instead, specifically for lazy fetching of resources.
Reminder that this iterator relies on discord-ext-menus (vendored for interactions/typing), examples on how to implement these subclasses can be found here. Most of the code shouldn't need to be changed.
The text was updated successfully, but these errors were encountered:
The
/balls list
command currently fetches the entire list of countryballs of a user, with all columns. This ends up taking a lot of time for users with insane amounts of countryballs.This could be done my modifying
CountryballsSource
, currently inheriting from the sourcemenus.ListPageSource
, to inherit frommenus.AsyncIteratorPageSource
instead, specifically for lazy fetching of resources.Reminder that this iterator relies on discord-ext-menus (vendored for interactions/typing), examples on how to implement these subclasses can be found here. Most of the code shouldn't need to be changed.
The text was updated successfully, but these errors were encountered: