3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 22:21:51 +00:00

Require can_use perm for !role help in self grantable roles

This commit is contained in:
Dragory 2019-05-04 10:48:23 +03:00
parent ce80d3d521
commit f80d141c82

View file

@ -217,6 +217,7 @@ export class SelfGrantableRolesPlugin extends ZeppelinPlugin<ISelfGrantableRoles
@d.command("role help", [], { @d.command("role help", [], {
aliases: ["role"], aliases: ["role"],
}) })
@d.permission("can_use")
@d.cooldown(5000, "can_ignore_cooldown") @d.cooldown(5000, "can_ignore_cooldown")
async roleHelpCmd(msg: Message) { async roleHelpCmd(msg: Message) {
const channelGrantableRoles = await this.selfGrantableRoles.getForChannel(msg.channel.id); const channelGrantableRoles = await this.selfGrantableRoles.getForChannel(msg.channel.id);