@notenoughupdates/discord-akairo
Advanced tools
Comparing version 10.0.0-dev.1660138634.99de920 to 10.0.0-dev.1660139201.d8cfb12
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "10.0.0-dev.1660138634.99de920", | ||
"version": "10.0.0-dev.1660139201.d8cfb12", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
@@ -17,3 +17,3 @@ "use strict"; | ||
exports.CommandOptions.parse(options); | ||
const { aliases = [], args = this.args || [], argumentDefaults = {}, before = this.before || (() => undefined), channel = null, clientPermissions = this.clientPermissions, condition = this.condition || (() => false), cooldown = null, description = "", editable = true, flags = [], ignoreCooldown, ignorePermissions, localization, lock, onlyNsfw = false, optionFlags = [], ownerOnly = false, prefix = this.prefix, quoted = true, ratelimit = 1, regex = this.regex, separator, slash = false, slashEphemeral = false, slashGuilds = [], slashOnly = false, slashOptions, superUserOnly = false, typing = false, userPermissions = this.userPermissions } = options; | ||
const { aliases = [], args = this.args || [], argumentDefaults = {}, before = this.before || (() => undefined), channel = null, clientPermissions = this.clientPermissions, condition = this.condition || (() => false), cooldown = null, description = "", editable = true, flags = [], ignoreCooldown, ignorePermissions, localization = {}, lock, onlyNsfw = false, optionFlags = [], ownerOnly = false, prefix = this.prefix, quoted = true, ratelimit = 1, regex = this.regex, separator, slash = false, slashEphemeral = false, slashGuilds = [], slashOnly = false, slashOptions, superUserOnly = false, typing = false, userPermissions = this.userPermissions } = options; | ||
let { slashDefaultMemberPermissions, slashDmPermission } = options; | ||
@@ -20,0 +20,0 @@ if (userPermissions && typeof userPermissions !== "function") |
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "10.0.0-dev.1660138634.99de920", | ||
"version": "10.0.0-dev.1660139201.d8cfb12", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
@@ -207,3 +207,3 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ | ||
ignorePermissions, | ||
localization, | ||
localization = {}, | ||
lock, | ||
@@ -255,3 +255,3 @@ onlyNsfw = false, | ||
this.editable = editable; | ||
this.localization = <CommandLocalization>localization; | ||
this.localization = localization; | ||
this.onlyNsfw = Boolean(onlyNsfw); | ||
@@ -755,4 +755,4 @@ this.ownerOnly = Boolean(ownerOnly); | ||
*/ | ||
export type CommandLocalization = Record<"nameLocalizations" | "descriptionLocalizations", LocalizationMap>; | ||
export type CommandLocalization = Partial<Record<"nameLocalizations" | "descriptionLocalizations", LocalizationMap>>; | ||
export const CommandInstance = z.instanceof(Command as new (...args: any[]) => Command); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1083048