Not throw error

This commit is contained in:
March 7th 2022-03-27 23:56:59 +07:00
parent 6922760367
commit 21446dad38

View File

@ -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