Mistake
oh no
This commit is contained in:
parent
8734b87ea9
commit
69bc495e81
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js-selfbot-v13",
|
"name": "discord.js-selfbot-v13",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"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",
|
||||||
|
@ -486,7 +486,7 @@ class ApplicationCommand extends Base {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (!subCommandCheck && !this?.options[i]) continue;
|
if (!subCommandCheck && !this?.options[i]) continue;
|
||||||
if (subCommandCheck && subCommand && !subCommand?.options[i]) continue;
|
if (subCommandCheck && subCommand?.options && !subCommand?.options[i]) continue;
|
||||||
if (!subCommandCheck) {
|
if (!subCommandCheck) {
|
||||||
// Check value is invalid
|
// Check value is invalid
|
||||||
let choice;
|
let choice;
|
||||||
@ -515,6 +515,7 @@ class ApplicationCommand extends Base {
|
|||||||
// Check value is invalid
|
// Check value is invalid
|
||||||
let choice;
|
let choice;
|
||||||
if (
|
if (
|
||||||
|
subCommand?.options &&
|
||||||
subCommand.options[i].choices &&
|
subCommand.options[i].choices &&
|
||||||
subCommand.options[i].choices.length > 0
|
subCommand.options[i].choices.length > 0
|
||||||
) {
|
) {
|
||||||
@ -546,7 +547,11 @@ class ApplicationCommand extends Base {
|
|||||||
}
|
}
|
||||||
if (!subCommandCheck && this.options[i]?.required)
|
if (!subCommandCheck && this.options[i]?.required)
|
||||||
throw new Error('Value required missing');
|
throw new Error('Value required missing');
|
||||||
if (subCommandCheck && subCommand?.options[i-1]?.required)
|
if (
|
||||||
|
subCommandCheck &&
|
||||||
|
subCommand?.options &&
|
||||||
|
subCommand?.options[i - 1]?.required
|
||||||
|
)
|
||||||
throw new Error('Value required missing');
|
throw new Error('Value required missing');
|
||||||
await this.client.api.interactions.post({
|
await this.client.api.interactions.post({
|
||||||
body: {
|
body: {
|
||||||
|
Loading…
Reference in New Issue
Block a user