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

Use permissions for dashboard perm listing commands

This commit is contained in:
Dragory 2021-09-05 20:09:22 +03:00
parent 57421a8439
commit 375837c31f
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
4 changed files with 16 additions and 12 deletions

View file

@ -7,11 +7,8 @@ import { resolveUser } from "../../../utils";
import { botControlCmd } from "../types";
export const ListDashboardPermsCmd = botControlCmd({
trigger: ["list_dashboard_permissions", "list_dashboard_perms", "list_dash_permissionss", "list_dash_perms"],
permission: null,
config: {
preFilters: [isOwnerPreFilter],
},
trigger: ["list_dashboard_permissions", "list_dashboard_perms", "list_dash_permissions", "list_dash_perms"],
permission: "can_list_dashboard_perms",
signature: {
guildId: ct.string({ option: true, shortcut: "g" }),