diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 7e7b21c2e..728365d2b 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -774,7 +774,7 @@ class Guild extends Base { */ async fetchVanityData() { if (!this.features.includes('VANITY_URL')) { - return Promise.reject(new Error('VANITY_URL')); + throw new Error('VANITY_URL'); } const data = await this.client.api.guilds(this.id, 'vanity-url').get(); this.vanityURLUses = data.uses;