@notenoughupdates/discord-akairo
Advanced tools
Comparing version 9.1.3-dev.1653439069.b53d9e1 to 9.1.3-dev.1653839465.4379922
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "9.1.3-dev.1653439069.b53d9e1", | ||
"version": "9.1.3-dev.1653839465.4379922", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
@@ -552,3 +552,3 @@ /// <reference types="node" /> | ||
export declare type PrefixSupplier = (message: Message) => string | string[] | Promise<string | string[]>; | ||
declare const slashResolvable: readonly ["Boolean", "Channel", "String", "Integer", "Number", "User", "Member", "Role", "Mentionable"]; | ||
declare const slashResolvable: readonly ["Attachment", "Boolean", "Channel", "Integer", "Member", "Mentionable", "Number", "Role", "String", "User"]; | ||
export declare type SlashResolveType = typeof slashResolvable[number]; | ||
@@ -555,0 +555,0 @@ export {}; |
@@ -599,3 +599,4 @@ "use strict"; | ||
"getRole", | ||
"getMentionable" | ||
"getMentionable", | ||
"getAttachment" | ||
].includes(func)) | ||
@@ -653,3 +654,7 @@ throw new Error(` ${option.type}`); | ||
case discord_js_1.ApplicationCommandOptionType.User: | ||
case discord_js_1.ApplicationCommandOptionType.Attachment: | ||
convertedOptions[option.name] ??= null; | ||
break; | ||
default: | ||
// @ts-expect-error | ||
convertedOptions[option.name] ??= null; | ||
@@ -1301,3 +1306,14 @@ break; | ||
exports.RegisterInteractionCommandError = RegisterInteractionCommandError; | ||
const slashResolvable = ["Boolean", "Channel", "String", "Integer", "Number", "User", "Member", "Role", "Mentionable"]; | ||
const slashResolvable = [ | ||
"Attachment", | ||
"Boolean", | ||
"Channel", | ||
"Integer", | ||
"Member", | ||
"Mentionable", | ||
"Number", | ||
"Role", | ||
"String", | ||
"User" | ||
]; | ||
/** | ||
@@ -1304,0 +1320,0 @@ * @typedef {CommandInteractionOptionResolver} VSCodePleaseStopRemovingMyImports |
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "9.1.3-dev.1653439069.b53d9e1", | ||
"version": "9.1.3-dev.1653839465.4379922", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
@@ -856,3 +856,4 @@ import { | ||
"getRole", | ||
"getMentionable" | ||
"getMentionable", | ||
"getAttachment" | ||
] as const | ||
@@ -920,3 +921,7 @@ ).includes(func) | ||
case ApplicationCommandOptionType.User: | ||
case ApplicationCommandOptionType.Attachment: | ||
convertedOptions[option.name] ??= null; | ||
break; | ||
default: | ||
// @ts-expect-error | ||
convertedOptions[option.name] ??= null; | ||
@@ -1884,3 +1889,14 @@ break; | ||
const slashResolvable = ["Boolean", "Channel", "String", "Integer", "Number", "User", "Member", "Role", "Mentionable"] as const; | ||
const slashResolvable = [ | ||
"Attachment", | ||
"Boolean", | ||
"Channel", | ||
"Integer", | ||
"Member", | ||
"Mentionable", | ||
"Number", | ||
"Role", | ||
"String", | ||
"User" | ||
] as const; | ||
export type SlashResolveType = typeof slashResolvable[number]; | ||
@@ -1904,3 +1920,4 @@ | ||
| NonNullable<CommandInteractionOption["member" | "role" | "user"]> | ||
| NonNullable<CommandInteractionOption["message"]>; | ||
| NonNullable<CommandInteractionOption["message"]> | ||
| NonNullable<CommandInteractionOption["attachment"]>; | ||
}; | ||
@@ -1907,0 +1924,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
43675261
29412