mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add notes (#423)
This commit is contained in:
@@ -791,6 +791,14 @@ var Client = (function (_EventEmitter) {
|
||||
return this.internal.setNickname(server, nick, user).then(dataCallback(callback), errorCallback(callback));
|
||||
};
|
||||
|
||||
// def setNote
|
||||
|
||||
Client.prototype.setNote = function setNote(user, note) {
|
||||
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err, {}*/{} : arguments[2];
|
||||
|
||||
return this.internal.setNote(user, note).then(dataCallback(callback), errorCallback(callback));
|
||||
};
|
||||
|
||||
// def createRole
|
||||
|
||||
Client.prototype.createRole = function createRole(server) {
|
||||
|
||||
Reference in New Issue
Block a user