From 797c5f0ae0bf057a0e4c364b828e51216bc3d944 Mon Sep 17 00:00:00 2001 From: Techbot121 Date: Tue, 1 Oct 2024 18:50:11 +0200 Subject: [PATCH] fix guild icons not applying --- app/services/discord/modules/discord-guild-icon.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/services/discord/modules/discord-guild-icon.ts b/app/services/discord/modules/discord-guild-icon.ts index 76241b43..f2fcad7a 100644 --- a/app/services/discord/modules/discord-guild-icon.ts +++ b/app/services/discord/modules/discord-guild-icon.ts @@ -124,6 +124,7 @@ export default (bot: DiscordBot): void => { data.lastDiscordGuildIcon = filePath; } catch (err) { console.error(err); + return; } data.lastDiscordGuildEvent = eventName; } @@ -174,7 +175,7 @@ export default (bot: DiscordBot): void => { const word = wordList[(Math.random() * wordList?.length) | 0]; nick = word.charAt(0).toUpperCase() + word.slice(1); - return { filePath: defaultIconPath, eventName, nickName: nick }; + return { filePath: filePath, eventName, nickName: nick }; }; const doIt = async () => {