mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
incorrect variable name convention (#1427)
I'm not pr farming, I swear. Gus told me to fix it.
This commit is contained in:
@@ -132,7 +132,7 @@ const Endpoints = exports.Endpoints = {
|
|||||||
webhooks: `${base}/webhooks`,
|
webhooks: `${base}/webhooks`,
|
||||||
ack: `${base}/ack`,
|
ack: `${base}/ack`,
|
||||||
settings: `${base}/settings`,
|
settings: `${base}/settings`,
|
||||||
Emoji: hash => Endpoints.CDN(root).Emoji(hash),
|
Emoji: emojiID => Endpoints.CDN(root).Emoji(emojiID),
|
||||||
Icon: (root, hash) => Endpoints.CDN(root).Icon(guildID, hash),
|
Icon: (root, hash) => Endpoints.CDN(root).Icon(guildID, hash),
|
||||||
Splash: (root, hash) => Endpoints.CDN(root).Splash(guildID, hash),
|
Splash: (root, hash) => Endpoints.CDN(root).Splash(guildID, hash),
|
||||||
Role: roleID => `${base}/roles/${roleID}`,
|
Role: roleID => `${base}/roles/${roleID}`,
|
||||||
@@ -187,7 +187,7 @@ const Endpoints = exports.Endpoints = {
|
|||||||
Member: m => exports.Endpoints.Guild(m.guild).Member(m),
|
Member: m => exports.Endpoints.Guild(m.guild).Member(m),
|
||||||
CDN(root) {
|
CDN(root) {
|
||||||
return {
|
return {
|
||||||
Emoji: hash => `${root}/emojis/${hash}.png`,
|
Emoji: emojiID => `${root}/emojis/${emojiID}.png`,
|
||||||
Asset: name => `${root}/assets/${name}`,
|
Asset: name => `${root}/assets/${name}`,
|
||||||
Avatar: (userID, hash) => `${root}/avatars/${userID}/${hash}.${hash.startsWith('a_') ? 'gif' : 'png'}?size=2048`,
|
Avatar: (userID, hash) => `${root}/avatars/${userID}/${hash}.${hash.startsWith('a_') ? 'gif' : 'png'}?size=2048`,
|
||||||
Icon: (guildID, hash) => `${root}/icons/${guildID}/${hash}.jpg`,
|
Icon: (guildID, hash) => `${root}/icons/${guildID}/${hash}.jpg`,
|
||||||
|
|||||||
Reference in New Issue
Block a user