mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
Require can_use perm for !role help in self grantable roles
This commit is contained in:
parent
ce80d3d521
commit
f80d141c82
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue