mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
added updating roles
This commit is contained in:
@@ -86,7 +86,7 @@ var Server = (function () {
|
||||
|
||||
var role = _ref3;
|
||||
|
||||
if (role.id === id) {
|
||||
if (role.id == id) {
|
||||
return role;
|
||||
}
|
||||
}
|
||||
@@ -110,7 +110,6 @@ var Server = (function () {
|
||||
var oldRole = this.getRole(data.id);
|
||||
|
||||
if (oldRole) {
|
||||
|
||||
var index = this.roles.indexOf(oldRole);
|
||||
this.roles[index] = new ServerPermissions(data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user