class PrivateParlorXT::StatisticsQueryHandler

Overview

A CallbackHandler that responds to callback queries originating from the inline keyboard buttons found on the message produced by StatsCommand

Defined in:

private-parlor-xt/handlers/callback_query_handlers/statistics_query_handler.cr

Instance Method Summary

Instance methods inherited from class PrivateParlorXT::CallbackHandler

deny_user(user : User, services : Services) : Nil deny_user, do(callback : Tourmaline::CallbackQuery, services : Services) : Nil do, user_from_callback(callback : Tourmaline::CallbackQuery, services : Services) : User | Nil user_from_callback

Constructor methods inherited from class PrivateParlorXT::CallbackHandler

new(config : Config) new

Instance Method Detail

def do(callback : Tourmaline::CallbackQuery, services : Services) : Nil #

Parses the query found in callback and returns the associated statistics screen if callback meets requirements


[View source]