mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
Fix permission names
This commit is contained in:
parent
c4ae36c745
commit
a2a7dd5b4b
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue