3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Tags: add separate list permission for !tag list

This commit is contained in:
Dragory 2019-02-09 13:17:59 +02:00
parent b4127a0fd8
commit 0a4a167c9d

View file

@ -35,14 +35,16 @@ export class TagsPlugin extends Plugin {
permissions: {
create: false,
use: true
use: true,
list: false
},
overrides: [
{
level: ">=50",
permissions: {
create: true
create: true,
list: true
}
}
]
@ -66,7 +68,7 @@ export class TagsPlugin extends Plugin {
}
@d.command("tag list")
@d.permission("create")
@d.permission("list")
async tagListCmd(msg: Message) {
const tags = await this.tags.all();
if (tags.length === 0) {