mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Blocked users store, move some warn messages to debug
This commit is contained in:
@@ -621,16 +621,21 @@ var Client = (function (_EventEmitter) {
|
||||
|
||||
// def updateServer
|
||||
|
||||
Client.prototype.updateServer = function updateServer(server, name, region) {
|
||||
Client.prototype.updateServer = function updateServer(server, options, region) {
|
||||
var callback = arguments.length <= 3 || arguments[3] === undefined ? function () /*err, srv*/{} : arguments[3];
|
||||
|
||||
if (typeof region === "function") {
|
||||
// region is the callback
|
||||
callback = region;
|
||||
region = undefined;
|
||||
} else if (region && typeof options === "string") {
|
||||
options = {
|
||||
name: options,
|
||||
region: region
|
||||
};
|
||||
}
|
||||
|
||||
return this.internal.updateServer(server, name, region).then(dataCallback(callback), errorCallback(callback));
|
||||
return this.internal.updateServer(server, options).then(dataCallback(callback), errorCallback(callback));
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user