mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
began to work on update listening
This commit is contained in:
@@ -83,7 +83,18 @@ class Server {
|
||||
return null;
|
||||
}
|
||||
|
||||
updateRole(){
|
||||
updateRole(data){
|
||||
|
||||
var oldRole = this.getRole(data.id);
|
||||
|
||||
if(oldRole){
|
||||
|
||||
oldRole.packed = data.permissions;
|
||||
oldRole.name = data.name;
|
||||
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user