mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
updated indexing
This commit is contained in:
@@ -128,8 +128,10 @@ var Server = (function () {
|
||||
|
||||
if (oldRole) {
|
||||
|
||||
oldRole.packed = data.permissions;
|
||||
oldRole.name = data.name;
|
||||
var index = this.roles.indexOf(oldRole);
|
||||
this.roles[index] = new ServerPermissions(permissionGroup);
|
||||
|
||||
return this.roles[index];
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user