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 () => {