mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Fixed null avatar crash
This commit is contained in:
@@ -26,7 +26,7 @@ export function makeEmbed(icon: string | undefined, title: string, description:
|
||||
if(typeof user !== 'undefined')
|
||||
embed.footer = {
|
||||
text: `${user.username} | v${App.version}`,
|
||||
iconURL: `${user.avatarURL()}?size=4096` || ''
|
||||
iconURL: `${user.displayAvatarURL()}?size=4096` || ''
|
||||
}
|
||||
else
|
||||
embed.footer = {
|
||||
|
||||
Reference in New Issue
Block a user