mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Fix User#defaultAvatarURL in Node 6
This commit is contained in:
parent
1afb21c981
commit
f0adf8f122
1 changed files with 3 additions and 3 deletions
|
|
@ -111,9 +111,9 @@ class User {
|
|||
* @readonly
|
||||
*/
|
||||
get defaultAvatarURL() {
|
||||
let defaultAvatars = Object.values(Constants.DefaultAvatars);
|
||||
let defaultAvatar = this.discriminator % defaultAvatars.length;
|
||||
return Constants.Endpoints.assets(`${defaultAvatars[defaultAvatar]}.png`);
|
||||
const avatars = Object.keys(Constants.DefaultAvatars);
|
||||
const avatar = avatars[this.discriminator % avatars.length];
|
||||
return Constants.Endpoints.assets(`${Constants.DefaultAvatars[avatar]}.png`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue