mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
updated indexing
This commit is contained in:
@@ -89,8 +89,11 @@ class Server {
|
||||
|
||||
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