class Tourmaline::CommandHandler

Defined in:

Constant Summary

DEFAULT_PREFIXES = ["/"]

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Tourmaline::EventHandler

async : Bool async, call(client : Client, update : Update) call, group : String group

Constructor methods inherited from class Tourmaline::EventHandler

new(group = :default, async = true) new

Constructor Detail

def self.new(commands, prefix = nil, group = :default, async = true, private_only = false, group_only = false, admin_only = false, on_edit = false, &block : Context -> ) #

Class Method Detail

def self.annotate(client) #

Instance Method Detail

def admin_only : Bool #

def admin_only=(admin_only : Bool) #

def call(client : Client, update : Update) #

def commands : Array(String) #

def commands=(commands : Array(String)) #

def group_only : Bool #

def group_only=(group_only : Bool) #

def on_edit : Bool #

def on_edit=(on_edit : Bool) #

def prefixes : Array(String) #

def prefixes=(prefixes : Array(String)) #

def private_only : Bool #

def private_only=(private_only : Bool) #