diff --git a/src/plugins/ModActions.ts b/src/plugins/ModActions.ts index d964c226..86795f6a 100644 --- a/src/plugins/ModActions.ts +++ b/src/plugins/ModActions.ts @@ -373,7 +373,7 @@ export class ModActionsPlugin extends ZeppelinPlugin { // The moderator who did the action is the message author or, if used, the specified --mod let mod = msg.member; if (args.mod) { - if (!this.hasPermission("act_as_other", { message: msg })) { + if (!this.hasPermission("can_act_as_other", { message: msg })) { msg.channel.createMessage(errorMessage("No permission for --mod")); return; } @@ -441,7 +441,7 @@ export class ModActionsPlugin extends ZeppelinPlugin { // The moderator who did the action is the message author or, if used, the specified --mod let mod = msg.member; if (args.mod) { - if (!this.hasPermission("act_as_other", { message: msg })) { + if (!this.hasPermission("can_act_as_other", { message: msg })) { msg.channel.createMessage(errorMessage("No permission for --mod")); return; } @@ -574,7 +574,7 @@ export class ModActionsPlugin extends ZeppelinPlugin { // The moderator who did the action is the message author or, if used, the specified --mod let mod = msg.member; if (args.mod) { - if (!this.hasPermission("act_as_other", { message: msg })) { + if (!this.hasPermission("can_act_as_other", { message: msg })) { msg.channel.createMessage(errorMessage("No permission for --mod")); return; } @@ -659,7 +659,7 @@ export class ModActionsPlugin extends ZeppelinPlugin { // The moderator who did the action is the message author or, if used, the specified --mod let mod = msg.member; if (args.mod) { - if (!this.hasPermission("act_as_other", { message: msg })) { + if (!this.hasPermission("can_act_as_other", { message: msg })) { msg.channel.createMessage(errorMessage("No permission for --mod")); return; } @@ -729,7 +729,7 @@ export class ModActionsPlugin extends ZeppelinPlugin { // The moderator who did the action is the message author or, if used, the specified --mod let mod = msg.member; if (args.mod) { - if (!this.hasPermission("act_as_other", { message: msg })) { + if (!this.hasPermission("can_act_as_other", { message: msg })) { msg.channel.createMessage(errorMessage("No permission for --mod")); return; } @@ -799,7 +799,7 @@ export class ModActionsPlugin extends ZeppelinPlugin { // The moderator who did the action is the message author or, if used, the specified --mod let mod = msg.member; if (args.mod) { - if (!this.hasPermission("act_as_other", { message: msg })) { + if (!this.hasPermission("can_act_as_other", { message: msg })) { msg.channel.createMessage(errorMessage("No permission for --mod")); return; } @@ -851,7 +851,7 @@ export class ModActionsPlugin extends ZeppelinPlugin { // The moderator who did the action is the message author or, if used, the specified --mod let mod = msg.member; if (args.mod) { - if (!this.hasPermission("act_as_other", { message: msg })) { + if (!this.hasPermission("can_act_as_other", { message: msg })) { msg.channel.createMessage(errorMessage("No permission for --mod")); return; } @@ -905,7 +905,7 @@ export class ModActionsPlugin extends ZeppelinPlugin { // The moderator who did the action is the message author or, if used, the specified --mod let mod = msg.member; if (args.mod) { - if (!this.hasPermission("act_as_other", { message: msg })) { + if (!this.hasPermission("can_act_as_other", { message: msg })) { msg.channel.createMessage(errorMessage("No permission for --mod")); return; } @@ -1046,7 +1046,7 @@ export class ModActionsPlugin extends ZeppelinPlugin { // The moderator who did the action is the message author or, if used, the specified --mod let mod = msg.member; if (args.mod) { - if (!this.hasPermission("act_as_other", { message: msg })) { + if (!this.hasPermission("can_act_as_other", { message: msg })) { msg.channel.createMessage(errorMessage("No permission for --mod")); return; } diff --git a/src/plugins/Tags.ts b/src/plugins/Tags.ts index 9bf2f801..337b5dd6 100644 --- a/src/plugins/Tags.ts +++ b/src/plugins/Tags.ts @@ -204,7 +204,7 @@ export class TagsPlugin extends ZeppelinPlugin { async onMessageCreate(msg: SavedMessage) { const member = this.guild.members.get(msg.user_id); - if (!this.hasPermission("use", { member, channelId: msg.channel_id })) return; + if (!this.hasPermission("can_use", { member, channelId: msg.channel_id })) return; if (!msg.data.content) return; if (msg.is_bot) return;