abstract class PrivateParlorXT::CallbackHandler
- PrivateParlorXT::CallbackHandler
- Reference
- Object
Overview
The base class for all callback query handlers
Direct Known Subclasses
Defined in:
private-parlor-xt/handlers/callback_query_handler.crConstructors
-
.new(config : Config)
Initializes an instance of
CallbackHandler
Instance Method Summary
-
#deny_user(user : User, services : Services) : Nil
Queues a system reply when the user cannot make a callback query due to being blacklisted.
-
#do(callback : Tourmaline::CallbackQuery, services : Services) : Nil
The function that describes the behavior of the
CallbackHandler
- #user_from_callback(callback : Tourmaline::CallbackQuery, services : Services) : User | Nil
Constructor Detail
Initializes an instance of CallbackHandler
The config can be used to modify the functionality of the handler
Instance Method Detail
Queues a system reply when the user cannot make a callback query due to being blacklisted.
The function that describes the behavior of the CallbackHandler