mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
Minor test, works
This commit is contained in:
parent
b130b2400b
commit
154300dfbd
3 changed files with 3 additions and 3 deletions
|
|
@ -129,7 +129,7 @@ var Server = (function () {
|
||||||
if (oldRole) {
|
if (oldRole) {
|
||||||
|
|
||||||
var index = this.roles.indexOf(oldRole);
|
var index = this.roles.indexOf(oldRole);
|
||||||
this.roles[index] = new ServerPermissions(permissionGroup);
|
this.roles[index] = new ServerPermissions(data);
|
||||||
|
|
||||||
return this.roles[index];
|
return this.roles[index];
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ class Server {
|
||||||
if(oldRole){
|
if(oldRole){
|
||||||
|
|
||||||
var index = this.roles.indexOf(oldRole);
|
var index = this.roles.indexOf(oldRole);
|
||||||
this.roles[index] = new ServerPermissions(permissionGroup);
|
this.roles[index] = new ServerPermissions(data);
|
||||||
|
|
||||||
|
|
||||||
return this.roles[index];
|
return this.roles[index];
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ mybot.on("message", function (message) {
|
||||||
console.log(key);
|
console.log(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
mybot.reply(message, user + "'s evaluated permissions in this channel are " + message.channel.permissionsOf(user).attachFiles);
|
mybot.reply(message, user + "'s evaluated permissions in this channel are " + message.channel.permissionsOf(user).sendTTSMessages);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue