mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
fix(core): resolve unhandled rejections on 403s and undefined channel guildId
This commit is contained in:
1 parent
a467611e37
commit
5714f7b2c8
5 files changed
+91
-24
No files matched your search
+3
-3
@@ -233,10 +233,10 @@ class Remix {
|
||||
),
|
||||
false,
|
||||
{
|
||||
icon_url: msg.channel.channel.guild?.icon
|
||||
? `https://cdn.fluxer.app/icons/${msg.channel.channel.guild.id}/${msg.channel.channel.guild.icon}.webp`
|
||||
icon_url: (msg.channel?.channel?.guild?.icon || msg.server?.icon)
|
||||
? `https://cdn.fluxer.app/icons/${msg.channel?.channel?.guild?.id ?? msg.server?.id}/${msg.channel?.channel?.guild?.icon ?? msg.server?.icon}.webp`
|
||||
: null,
|
||||
title: msg.channel.channel.guild?.name ?? null,
|
||||
title: msg.channel?.channel?.guild?.name ?? msg.server?.name ?? null,
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user