mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Minor test, works
This commit is contained in:
@@ -129,7 +129,7 @@ var Server = (function () {
|
||||
if (oldRole) {
|
||||
|
||||
var index = this.roles.indexOf(oldRole);
|
||||
this.roles[index] = new ServerPermissions(permissionGroup);
|
||||
this.roles[index] = new ServerPermissions(data);
|
||||
|
||||
return this.roles[index];
|
||||
} else {
|
||||
|
||||
@@ -90,7 +90,7 @@ class Server {
|
||||
if(oldRole){
|
||||
|
||||
var index = this.roles.indexOf(oldRole);
|
||||
this.roles[index] = new ServerPermissions(permissionGroup);
|
||||
this.roles[index] = new ServerPermissions(data);
|
||||
|
||||
|
||||
return this.roles[index];
|
||||
|
||||
@@ -28,7 +28,7 @@ mybot.on("message", function (message) {
|
||||
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);
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user