chore(release): v2.6.2
This commit is contained in:
parent
8082ade700
commit
b870b51c11
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js-selfbot-v13",
|
"name": "discord.js-selfbot-v13",
|
||||||
"version": "2.6.1",
|
"version": "2.6.2",
|
||||||
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"types": "./typings/index.d.ts",
|
"types": "./typings/index.d.ts",
|
||||||
|
@ -738,7 +738,7 @@ class ApplicationCommand extends Base {
|
|||||||
'is not a valid sub command',
|
'is not a valid sub command',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const valueRequired = subCommand.options?.filter(o => o.required).length;
|
const valueRequired = subCommand.options?.filter(o => o.required).length || 0;
|
||||||
for (let i = 0; i < options.length; i++) {
|
for (let i = 0; i < options.length; i++) {
|
||||||
const optionInput = subCommand.options[i];
|
const optionInput = subCommand.options[i];
|
||||||
const value = options[i];
|
const value = options[i];
|
||||||
@ -905,7 +905,7 @@ class ApplicationCommand extends Base {
|
|||||||
// length = 2 => sub command group + sub command
|
// length = 2 => sub command group + sub command
|
||||||
switch (subCommandArray.length) {
|
switch (subCommandArray.length) {
|
||||||
case 0: {
|
case 0: {
|
||||||
const valueRequired = this.options.filter(o => o.required).length;
|
const valueRequired = this.options?.filter(o => o.required).length || 0;
|
||||||
for (let i = 0; i < options.length; i++) {
|
for (let i = 0; i < options.length; i++) {
|
||||||
const optionInput = this.options[i];
|
const optionInput = this.options[i];
|
||||||
const value = options[i];
|
const value = options[i];
|
||||||
|
6
typings/index.d.ts
vendored
6
typings/index.d.ts
vendored
@ -474,7 +474,11 @@ export class ApplicationCommand<PermissionsFetchType = {}> extends Base {
|
|||||||
private static transformCommand(command: ApplicationCommandData): RESTPostAPIApplicationCommandsJSONBody;
|
private static transformCommand(command: ApplicationCommandData): RESTPostAPIApplicationCommandsJSONBody;
|
||||||
private static isAPICommandData(command: object): command is RESTPostAPIApplicationCommandsJSONBody;
|
private static isAPICommandData(command: object): command is RESTPostAPIApplicationCommandsJSONBody;
|
||||||
// Add
|
// Add
|
||||||
public static sendSlashCommand(message: Message, subCommandArray?: string[], options?: string[]): Promise<InteractionResponseBody>;
|
public static sendSlashCommand(
|
||||||
|
message: Message,
|
||||||
|
subCommandArray?: string[],
|
||||||
|
options?: string[],
|
||||||
|
): Promise<InteractionResponseBody>;
|
||||||
public static sendContextMenu(message: Message): Promise<InteractionResponseBody>;
|
public static sendContextMenu(message: Message): Promise<InteractionResponseBody>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user