mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 14:41:36 +00:00
Webpack build for branch master: 89745fe132
This commit is contained in:
parent
5d02a61ec5
commit
c782f83784
2 changed files with 5 additions and 5 deletions
|
|
@ -204,7 +204,7 @@ const Endpoints = exports.Endpoints = {
|
|||
webhooks: `${base}/webhooks`,
|
||||
ack: `${base}/ack`,
|
||||
settings: `${base}/settings`,
|
||||
Emoji: emojiID => `${base}/emojis/${emojiID}`,
|
||||
Emoji: hash => Endpoints.CDN(root).Emoji(hash),
|
||||
Icon: (root, hash) => Endpoints.CDN(root).Icon(guildID, hash),
|
||||
Splash: (root, hash) => Endpoints.CDN(root).Splash(guildID, hash),
|
||||
Role: roleID => `${base}/roles/${roleID}`,
|
||||
|
|
@ -259,7 +259,7 @@ const Endpoints = exports.Endpoints = {
|
|||
Member: m => exports.Endpoints.Guild(m.guild).Member(m),
|
||||
CDN(root) {
|
||||
return {
|
||||
Emoji: emojiID => `${root}/emojis/${emojiID}.png`,
|
||||
Emoji: hash => `${root}/emojis/${hash}.png`,
|
||||
Asset: name => `${root}/assets/${name}`,
|
||||
Avatar: (userID, hash) => `${root}/avatars/${userID}/${hash}.${hash.startsWith('a_') ? 'gif' : 'png'}?size=2048`,
|
||||
Icon: (guildID, hash) => `${root}/icons/${guildID}/${hash}.jpg`,
|
||||
|
|
@ -5028,7 +5028,7 @@ class Emoji {
|
|||
* @readonly
|
||||
*/
|
||||
get url() {
|
||||
return Constants.Endpoints.CDN(this.client.options.http.host).Emoji(this.id);
|
||||
return Constants.Endpoints.CDN(this.client.options.http.cdn).Emoji(this.id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
4
discord.master.min.js
vendored
4
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue