mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add setNickname docs
This commit is contained in:
@@ -755,6 +755,11 @@ var Client = (function (_EventEmitter) {
|
||||
Client.prototype.setNickname = function setNickname(server, nick, user) {
|
||||
var callback = arguments.length <= 3 || arguments[3] === undefined ? function () /*err, {}*/{} : arguments[3];
|
||||
|
||||
if (typeof user === "function") {
|
||||
// user is the callback
|
||||
callback = user;
|
||||
user = null;
|
||||
}
|
||||
if (!user) {
|
||||
user = this.user;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user