mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Testing nickname support
This commit is contained in:
@@ -750,6 +750,17 @@ var Client = (function (_EventEmitter) {
|
||||
return this.internal.undeafenMember(user, server).then(dataCallback(callback), errorCallback(callback));
|
||||
};
|
||||
|
||||
// def setNickname
|
||||
|
||||
Client.prototype.setNickname = function setNickname(server, nick, user) {
|
||||
var callback = arguments.length <= 3 || arguments[3] === undefined ? function () /*err, {}*/{} : arguments[3];
|
||||
|
||||
if (!user) {
|
||||
user = this.user;
|
||||
}
|
||||
return this.internal.setNickname(server, nick, user).then(dataCallback(callback), errorCallback(callback));
|
||||
};
|
||||
|
||||
// def createRole
|
||||
|
||||
Client.prototype.createRole = function createRole(server) {
|
||||
|
||||
Reference in New Issue
Block a user