completed user syncing. it occurs on message send
This commit is contained in:
parent
f418d51e55
commit
22dde9faf7
4 changed files with 90 additions and 4 deletions
|
@ -58,5 +58,16 @@ function guildIcon(guild) {
|
|||
return `/icons/${guild.id}/${guild.icon}.png?size=${IMAGE_SIZE}`
|
||||
}
|
||||
|
||||
function userAvatar(user) {
|
||||
return `/avatars/${user.id}/${user.avatar}.png?size=${IMAGE_SIZE}`
|
||||
}
|
||||
|
||||
function memberAvatar(guildID, user, member) {
|
||||
if (!member.avatar) return userAvatar(user)
|
||||
return `/guilds/${guildID}/users/${user.id}/avatars/${member.avatar}.png?size=${IMAGE_SIZE}`
|
||||
}
|
||||
|
||||
module.exports.guildIcon = guildIcon
|
||||
module.exports.userAvatar = userAvatar
|
||||
module.exports.memberAvatar = memberAvatar
|
||||
module.exports.uploadDiscordFileToMxc = uploadDiscordFileToMxc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue