diff --git a/src/structures/Guild.js b/src/structures/Guild.js index d58625de3..eb1e5213c 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -749,7 +749,7 @@ class Guild extends Base { */ fetchVanityCode() { if (!this.features.includes('VANITY_URL')) { - return Promise.reject(new Error('VANITY_URL')); + throw new Error('VANITY_URL'); } return this.client.api .guilds(this.id, 'vanity-url')