fix getAvatarUrl in `@discord/user` module

pull/67/head
dperolio 3 years ago
parent c7c47f0342
commit dee656c807
No known key found for this signature in database
GPG Key ID: 3E9BBAA710D3DDCE

@ -152,7 +152,7 @@ export const getAvatar = userId => {
export const getAvatarUrl = userId => {
try {
assertString(userId);
const AvatarURL = this.getUser(userId)?.avatarURL;
const AvatarURL = this.getUser(userId)?.getAvatarURL();
/**
* Check if the avatar URL exists. If it's already a valid URL, skip directly to the
* return below. If it's not a valid URL already, make sure it starts with /

Loading…
Cancel
Save