mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
began to work on update listening
This commit is contained in:
@@ -122,7 +122,18 @@ var Server = (function () {
|
||||
}
|
||||
}, {
|
||||
key: "updateRole",
|
||||
value: function updateRole() {}
|
||||
value: function updateRole(data) {
|
||||
|
||||
var oldRole = this.getRole(data.id);
|
||||
|
||||
if (oldRole) {
|
||||
|
||||
oldRole.packed = data.permissions;
|
||||
oldRole.name = data.name;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "removeRole",
|
||||
value: function removeRole(id) {
|
||||
|
||||
Reference in New Issue
Block a user