class

PrivateParlorXT::BlacklistCommand

Inherits PrivateParlorXT::CommandHandler < PrivateParlorXT::Handler < Reference < Object

A command used to blacklist a user by args or by replying to a message

Instance methods

blacklist_from_args(args : Array(String), user : User, message : MessageID, services : Services) : Nil

Blacklists a user described in args from the chat if the user exists

Source
blacklist_from_reply(reason : String | Nil, user : User, message : MessageID, reply : Tourmaline::Message, services : Services) : Nil

Blacklists the sender of reply if the message still exists in the cache

Source
blacklist_user(blacklisted_user : User, invoker : User, message : MessageID, reason : String | Nil, services : Services) : Bool | Nil

Blacklists the blacklisted_user and removes all messages sent by and addressed to him if his rank does not equal to or exceed invoker's rank

Source
do(message : Tourmaline::Message, services : Services) : Nil

Blacklists the user described in the message text or blacklists the sender of the message it replies to, if message meets requirements

Source
send_messages(reason : String | Nil, blacklisted_user : User, invoker : User, deleted_message : ReplyParameters | Nil, invoker_message : MessageID, services : Services) : Nil

Queues success and blacklisted responses

Source