mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Testing nickname support
This commit is contained in:
@@ -810,6 +810,15 @@ export default class Client extends EventEmitter {
|
||||
.then(dataCallback(callback), errorCallback(callback));
|
||||
}
|
||||
|
||||
// def setNickname
|
||||
setNickname(server, nick, user, callback = (/*err, {}*/) => { }) {
|
||||
if(!user) {
|
||||
user = this.user;
|
||||
}
|
||||
return this.internal.setNickname(server, nick, user)
|
||||
.then(dataCallback(callback), errorCallback(callback));
|
||||
}
|
||||
|
||||
// def createRole
|
||||
createRole(server, data = null, callback = (/*err, role*/) => { }) {
|
||||
if (typeof data === "function") {
|
||||
|
||||
Reference in New Issue
Block a user