forked from cadence/out-of-your-element
begin converting discord attachments and stickers
This commit is contained in:
parent
38d7db5071
commit
e1d7ced87d
6 changed files with 194 additions and 33 deletions
|
@ -74,7 +74,14 @@ function memberAvatar(guildID, user, member) {
|
|||
return `/guilds/${guildID}/users/${user.id}/avatars/${member.avatar}.png?size=${IMAGE_SIZE}`
|
||||
}
|
||||
|
||||
function emoji(emojiID, animated) {
|
||||
const base = `/emojis/${emojiID}`
|
||||
if (animated) return base + ".gif"
|
||||
else return base + ".png"
|
||||
}
|
||||
|
||||
module.exports.guildIcon = guildIcon
|
||||
module.exports.userAvatar = userAvatar
|
||||
module.exports.memberAvatar = memberAvatar
|
||||
module.exports.emoji = emoji
|
||||
module.exports.uploadDiscordFileToMxc = uploadDiscordFileToMxc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue