BanchoLobby: Add banPlayer method

parent 0d2b2812
......@@ -663,6 +663,17 @@ class BanchoLobby extends EventEmitter {
);
}
/**
* Bans a player from the lobby
* @param {string} player Referenced by their username or #<userid>
* @async
*/
banPlayer(player) {
return new Promise((resolve, reject) =>
this.channel.sendMessage("!mp ban "+player).then(resolve, reject)
);
}
/**
* Get back the host from one's hand
* @async
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment