Skip to content

Commit

Permalink
fix: add support for new guild feature GUILD_WEB_PAGE_VANITY_URL (#…
Browse files Browse the repository at this point in the history
…9219)

Co-authored-by: space <spaceeec@yahoo.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 1, 2023
1 parent 7987565 commit de1aac6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/discord.js/src/structures/Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,6 @@ class Guild extends AnonymousGuild {
* .catch(console.error);
*/
async fetchVanityData() {
if (!this.features.includes(GuildFeature.VanityURL)) {
throw new DiscordjsError(ErrorCodes.VanityURL);
}
const data = await this.client.rest.get(Routes.guildVanityUrl(this.id));
this.vanityURLCode = data.code;
this.vanityURLUses = data.uses;
Expand Down

0 comments on commit de1aac6

Please sign in to comment.