Type Alias Action
Source pub type Action = Decision;
Expand description
The answer to a decision hook: the contract’s decision variant.
Each hook accepts a subset; an answer outside it counts as a failed call:
login, before_transfer, chat: Continue, deny
initial_server, kick: Continue, deny,
server
command: Continue, message,
server, queue, LeaveQueue
pub enum Action {
Continue,
Deny(Text),
Server(String),
Message(Text),
Queue(String),
LeaveQueue,
}
deny(reason): refuse, and show the player the reason.
message(text): reply to whoever ran a command.
server(name): send the player to a backend.
queue(name): put the player into the queue for a backend.