mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
Update Constants.js (#1014)
This commit is contained in:
@@ -92,7 +92,7 @@ const Endpoints = exports.Endpoints = {
|
|||||||
userProfile: (userID) => `${Endpoints.user(userID)}/profile`,
|
userProfile: (userID) => `${Endpoints.user(userID)}/profile`,
|
||||||
avatar: (userID, avatar) => {
|
avatar: (userID, avatar) => {
|
||||||
if (userID === '1') return 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`,
|
me: `${API}/users/@me`,
|
||||||
meGuild: (guildID) => `${Endpoints.me}/guilds/${guildID}`,
|
meGuild: (guildID) => `${Endpoints.me}/guilds/${guildID}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user