PrivateParlorXT::DemoteCommand
Inherits PrivateParlorXT::CommandHandler < PrivateParlorXT::Handler < Reference < Object
A command used to demote a user to the default rank or a given rank
Instance methods
demote_from_args(text : String | Nil, user : User, message : MessageID, services : Services) : Nil
Demotes a user given in the text to the default rank if only one argument (the user's identifier) was given, or demotes to the given rank if two arguments (the user's identifier and name/value of rank) was given
demote_from_reply(arg : String | Nil, user : User, message : MessageID, reply : Tourmaline::Message, services : Services) : Nil
Demotes a user who sent the reply message to the default rank if no arg was given, or demotes to the given rank in arg if one argument (name/value of rank) was given
Demotes the user described in the message text or demotes the sender of the message it replies to, if message meets requirements