From 513cc6f13a67e92b11b39caa85cbaafd74f8155e Mon Sep 17 00:00:00 2001 From: Laxuzer <64734729+Laxuzer@users.noreply.github.com> Date: Fri, 25 Feb 2022 23:50:48 +0300 Subject: [PATCH] Update Command.js --- src/base/Command.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/base/Command.js b/src/base/Command.js index e62fbc5..00d5a25 100644 --- a/src/base/Command.js +++ b/src/base/Command.js @@ -1,7 +1,7 @@ class Command { /** - * @param {{run: (ctx: import("./Ctx")) => Promise | void, name: string, aliases?: string[], category?: string, description?: string, usage?: string[], enabled: boolean, nsfw?: boolean, cooldown?: Number, permissions?: { developerOnly?: Boolean, ownerOnly?: Boolean, user?: { channel?: import("discord.js").PermissionString[], guild?: import("discord.js").PermissionString[] }, bot?: { channel?: import("discord.js").PermissionString[], guild?: import("discord.js").PermissionString[] } }, subCommands?: [{run: (ctx: import("./Context")) => Promise | void, rawName: string, name?: string, aliases?: string[], description?: string, usage?: string[]}], settings?: {[key: any]}}} param0 + * @param {{run: (ctx: import("./Ctx")) => Promise | void, name: string, aliases?: string[], category?: string, description?: string, usage?: string[], enabled: boolean, nsfw?: boolean, cooldown?: Number, permissions?: { developerOnly?: Boolean, moderatorRole: Boolean, ownerOnly?: Boolean, user?: { channel?: import("discord.js").PermissionString[], guild?: import("discord.js").PermissionString[] }, bot?: { channel?: import("discord.js").PermissionString[], guild?: import("discord.js").PermissionString[] } }, subCommands?: [{run: (ctx: import("./Context")) => Promise | void, rawName: string, name?: string, aliases?: string[], description?: string, usage?: string[]}], settings?: {[key: any]}}} param0 */ constructor({ name = "empty", @@ -15,8 +15,9 @@ class Command { permissions = { developerOnly: false, ownerOnly: false, - user: [], - bot: [] + moderatorRole: false, + user: { channel: [], guild: [] }, + bot: { channel: [], guild: [] } }, subCommands = [], settings = {},