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
That looks like a bug. This should work, as the client collects all “floating” callback objects in the main module, or at least it should. I’ll take a look when I can.
Since commands and callbacks are on each client, calling the decorators snowfin.slash_command, snowfin.select_callback, etc., does not work as it doesn't load the callbacks into the client. Tested with https://github.com/KAJdev/snowfin/blob/main/examples/deferred_example.py and https://github.com/KAJdev/snowfin/blob/main/examples/component_example.py.
It seems like it requires it to be a Module, and load_module() must be called in order to properly load the callbacks into the client.
Simple non-working example:
The text was updated successfully, but these errors were encountered: