mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Update Constants.js (#1014)
This commit is contained in:
parent
2ab5bae69a
commit
265ac90234
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ const Endpoints = exports.Endpoints = {
|
|||
userProfile: (userID) => `${Endpoints.user(userID)}/profile`,
|
||||
avatar: (userID, avatar) => {
|
||||
if (userID === '1') return avatar;
|
||||
return `${Endpoints.CDN}/avatars/${userID}/${avatar}.${avatar.startsWith('a_') ? 'gif' : 'jpg'}`;
|
||||
return `${Endpoints.CDN}/avatars/${userID}/${avatar}.${avatar.startsWith('a_') ? 'gif' : 'jpg'}?size=1024`;
|
||||
},
|
||||
me: `${API}/users/@me`,
|
||||
meGuild: (guildID) => `${Endpoints.me}/guilds/${guildID}`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue