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