fix(ESLint)
This commit is contained in:
parent
171f2b1af9
commit
8119666bcb
@ -628,10 +628,10 @@ class ApplicationCommand extends Base {
|
|||||||
option_[0] = {
|
option_[0] = {
|
||||||
type: ApplicationCommandOptionTypes[subCommand.type],
|
type: ApplicationCommandOptionTypes[subCommand.type],
|
||||||
name: subCommand.name,
|
name: subCommand.name,
|
||||||
options: optionFormat.filter(obj => obj.value),
|
options: optionFormat.filter(obj => obj.value !== undefined),
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
option_ = optionFormat.filter(obj => obj.value);
|
option_ = optionFormat.filter(obj => obj.value !== undefined);
|
||||||
}
|
}
|
||||||
// Autoresponse
|
// Autoresponse
|
||||||
const getAutoResponse = async (options_, type, name, value) => {
|
const getAutoResponse = async (options_, type, name, value) => {
|
||||||
@ -717,8 +717,9 @@ class ApplicationCommand extends Base {
|
|||||||
type: ApplicationCommandOptionTypes[this.options[i].type],
|
type: ApplicationCommandOptionTypes[this.options[i].type],
|
||||||
name: this.options[i].name,
|
name: this.options[i].name,
|
||||||
value:
|
value:
|
||||||
choice?.value || value == undefined ? undefined :
|
choice?.value || value == undefined
|
||||||
(this.options[i].type == 'ATTACHMENT'
|
? value
|
||||||
|
: this.options[i].type == 'ATTACHMENT'
|
||||||
? await addDataFromAttachment(value)
|
? await addDataFromAttachment(value)
|
||||||
: this.options[i].type == 'INTEGER'
|
: this.options[i].type == 'INTEGER'
|
||||||
? Number(value)
|
? Number(value)
|
||||||
@ -731,7 +732,7 @@ class ApplicationCommand extends Base {
|
|||||||
this.options[i].name,
|
this.options[i].name,
|
||||||
value,
|
value,
|
||||||
)
|
)
|
||||||
: value),
|
: value,
|
||||||
};
|
};
|
||||||
optionFormat.push(data);
|
optionFormat.push(data);
|
||||||
} else {
|
} else {
|
||||||
@ -757,8 +758,9 @@ class ApplicationCommand extends Base {
|
|||||||
type: ApplicationCommandOptionTypes[subCommand.options[i].type],
|
type: ApplicationCommandOptionTypes[subCommand.options[i].type],
|
||||||
name: subCommand.options[i].name,
|
name: subCommand.options[i].name,
|
||||||
value:
|
value:
|
||||||
choice?.value || value == undefined ? undefined :
|
choice?.value || value == undefined
|
||||||
(subCommand.options[i].type == 'ATTACHMENT'
|
? value
|
||||||
|
: subCommand.options[i].type == 'ATTACHMENT'
|
||||||
? await addDataFromAttachment(value)
|
? await addDataFromAttachment(value)
|
||||||
: subCommand.options[i].type == 'INTEGER'
|
: subCommand.options[i].type == 'INTEGER'
|
||||||
? Number(value)
|
? Number(value)
|
||||||
@ -771,7 +773,7 @@ class ApplicationCommand extends Base {
|
|||||||
subCommand.options[i].name,
|
subCommand.options[i].name,
|
||||||
value,
|
value,
|
||||||
)
|
)
|
||||||
: value),
|
: value,
|
||||||
};
|
};
|
||||||
optionFormat.push(data);
|
optionFormat.push(data);
|
||||||
}
|
}
|
||||||
|
@ -222,8 +222,7 @@ class ClientUser extends User {
|
|||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
*/
|
*/
|
||||||
setDiscriminator(discriminator, password) {
|
setDiscriminator(discriminator, password) {
|
||||||
if (this.nitroType == 'NONE')
|
if (this.nitroType == 'NONE') throw new Error('You must be a Nitro User to change your discriminator.');
|
||||||
throw new Error('You must be a Nitro User to change your discriminator.');
|
|
||||||
if (!password && !this.client.password) {
|
if (!password && !this.client.password) {
|
||||||
throw new Error('A password is required to change a discriminator.');
|
throw new Error('A password is required to change a discriminator.');
|
||||||
}
|
}
|
||||||
|
2353
src/util/Voice.js
2353
src/util/Voice.js
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user