@notenoughupdates/discord-akairo
Advanced tools
Comparing version 9.1.3-dev.1653839465.4379922 to 9.1.3-dev.1653854301.456923a
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "9.1.3-dev.1653839465.4379922", | ||
"version": "9.1.3-dev.1653854301.456923a", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -41,5 +41,5 @@ "main": "./dist/src/index.js", | ||
"@favware/npm-deprecate": "^1.0.4", | ||
"@types/node": "^17.0.35", | ||
"@typescript-eslint/eslint-plugin": "^5.25.0", | ||
"@typescript-eslint/parser": "^5.25.0", | ||
"@types/node": "^17.0.36", | ||
"@typescript-eslint/eslint-plugin": "^5.26.0", | ||
"@typescript-eslint/parser": "^5.26.0", | ||
"copyfiles": "^2.4.1", | ||
@@ -55,8 +55,5 @@ "discord-api-types": "0.33.0", | ||
"typedoc": "^0.22.15", | ||
"typescript": "^4.6.4" | ||
"typescript": "^4.7.2" | ||
}, | ||
"packageManager": "yarn@3.1.1", | ||
"dependencies": { | ||
"@sapphire/shapeshift": "^3.0.0" | ||
} | ||
"packageManager": "yarn@3.2.1" | ||
} |
@@ -602,3 +602,3 @@ "use strict"; | ||
].includes(func)) | ||
throw new Error(` ${option.type}`); | ||
throw new Error(`Unknown slash option type: ${option.type}`); | ||
convertedOptions[option.name] = interaction.options[func](option.name, false); | ||
@@ -605,0 +605,0 @@ } |
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "9.1.3-dev.1653839465.4379922", | ||
"version": "9.1.3-dev.1653854301.456923a", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -41,5 +41,5 @@ "main": "./dist/src/index.js", | ||
"@favware/npm-deprecate": "^1.0.4", | ||
"@types/node": "^17.0.35", | ||
"@typescript-eslint/eslint-plugin": "^5.25.0", | ||
"@typescript-eslint/parser": "^5.25.0", | ||
"@types/node": "^17.0.36", | ||
"@typescript-eslint/eslint-plugin": "^5.26.0", | ||
"@typescript-eslint/parser": "^5.26.0", | ||
"copyfiles": "^2.4.1", | ||
@@ -55,8 +55,5 @@ "discord-api-types": "0.33.0", | ||
"typedoc": "^0.22.15", | ||
"typescript": "^4.6.4" | ||
"typescript": "^4.7.2" | ||
}, | ||
"packageManager": "yarn@3.1.1", | ||
"dependencies": { | ||
"@sapphire/shapeshift": "^3.0.0" | ||
} | ||
"packageManager": "yarn@3.2.1" | ||
} |
@@ -844,3 +844,3 @@ import { | ||
const func = `get${originalOption?.resolve ?? ApplicationCommandOptionType[option.type]}` as GetFunction; | ||
const func = `get${originalOption?.resolve ?? (ApplicationCommandOptionType[option.type] as SlashResolveType)}` as const; | ||
if ( | ||
@@ -862,3 +862,3 @@ !( | ||
) | ||
throw new Error(` ${option.type}`); | ||
throw new Error(`Unknown slash option type: ${option.type}`); | ||
convertedOptions[option.name] = interaction.options[func](option.name, false); | ||
@@ -1903,7 +1903,2 @@ } | ||
/** | ||
* Calls the corresponding get function on the {@link CommandInteractionOptionResolver} | ||
*/ | ||
type GetFunction = `get${SlashResolveType}`; | ||
type ConvertedOptionsType = { | ||
@@ -1910,0 +1905,0 @@ [key: string]: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
43698764
0
430
29450
3
19
- Removed@sapphire/shapeshift@^3.0.0
- Removed@sapphire/shapeshift@3.9.7(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedlodash@4.17.21(transitive)