Not throw error
This commit is contained in:
parent
6922760367
commit
21446dad38
@ -328,7 +328,9 @@ class Invite extends Base {
|
|||||||
if (autoVerify) {
|
if (autoVerify) {
|
||||||
const getForm = await this.client.api
|
const getForm = await this.client.api
|
||||||
.guilds(this.guild.id)['member-verification']
|
.guilds(this.guild.id)['member-verification']
|
||||||
.get({ query: { with_guild: false, invite_code: this.code } });
|
.get({ query: { with_guild: false, invite_code: this.code } })
|
||||||
|
.catch(() => {});
|
||||||
|
if (!getForm) return void 0;
|
||||||
const form = Object.assign(getForm.form_fields[0], { response: true });
|
const form = Object.assign(getForm.form_fields[0], { response: true });
|
||||||
// Respond to the form
|
// Respond to the form
|
||||||
// https://discord.com/api/v9/guilds/:id/requests/@me
|
// https://discord.com/api/v9/guilds/:id/requests/@me
|
||||||
|
Loading…
Reference in New Issue
Block a user