Skip to content

Commit

Permalink
fix(User): don't generate the banner URL when not cached (#6783)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImRodry committed Oct 8, 2021
1 parent e24209a commit 0d599a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/User.js
Expand Up @@ -324,7 +324,7 @@ class User extends Base {
);
json.avatarURL = this.avatarURL();
json.displayAvatarURL = this.displayAvatarURL();
json.bannerURL = this.bannerURL();
json.bannerURL = this.banner ? this.bannerURL() : this.banner;
return json;
}

Expand Down

0 comments on commit 0d599a1

Please sign in to comment.