3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 14:11:50 +00:00

Fix permission names

This commit is contained in:
Miikka 2019-05-14 14:49:30 +03:00 committed by GitHub
parent c4ae36c745
commit a2a7dd5b4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ export class AutoReactionsPlugin extends ZeppelinPlugin<IAutoReactionsPluginConf
} }
@d.command("auto_reactions", "<channelId:channelid> <reactions...>") @d.command("auto_reactions", "<channelId:channelid> <reactions...>")
@d.permission("use") @d.permission("can_manage")
async setAutoReactionsCmd(msg: Message, args: { channelId: string; reactions: string[] }) { async setAutoReactionsCmd(msg: Message, args: { channelId: string; reactions: string[] }) {
const finalReactions = []; const finalReactions = [];
@ -81,7 +81,7 @@ export class AutoReactionsPlugin extends ZeppelinPlugin<IAutoReactionsPluginConf
} }
@d.command("auto_reactions disable", "<channelId:channelid>") @d.command("auto_reactions disable", "<channelId:channelid>")
@d.permission("use") @d.permission("can_manage")
async disableAutoReactionsCmd(msg: Message, args: { channelId: string }) { async disableAutoReactionsCmd(msg: Message, args: { channelId: string }) {
const autoReaction = await this.autoReactions.getForChannel(args.channelId); const autoReaction = await this.autoReactions.getForChannel(args.channelId);
if (!autoReaction) { if (!autoReaction) {