Eslint fix all

This commit is contained in:
March 7th
2022-04-16 19:01:05 +07:00
parent c3764e77c4
commit 2a559f7d36
38 changed files with 209 additions and 207 deletions

View File

@@ -316,7 +316,7 @@ class Invite extends Base {
/**
* Join this Guild using this invite.
* @param {Boolean} autoVerify Whether to automatically verify member
* @param {boolean} autoVerify Whether to automatically verify member
* @returns {Promise<void>}
* @example
* await client.fetchInvite('code').then(async invite => {
@@ -330,13 +330,13 @@ class Invite extends Base {
.guilds(this.guild.id)
['member-verification'].get({ query: { with_guild: false, invite_code: this.code } })
.catch(() => {});
if (!getForm) return void 0;
if (!getForm) return undefined;
const form = Object.assign(getForm.form_fields[0], { response: true });
// Respond to the form
// https://discord.com/api/v9/guilds/:id/requests/@me
await this.client.api.guilds(this.guild.id).requests['@me'].put({ data: { form_fields: [form] } });
}
return void 0;
return undefined;
}
}