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:
parent
57421a8439
commit
375837c31f
4 changed files with 16 additions and 12 deletions
|
@ -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" }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue