Skip to content

Commit

Permalink
fix guild icons not applying
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Oct 1, 2024
1 parent 450cb37 commit 797c5f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/services/discord/modules/discord-guild-icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export default (bot: DiscordBot): void => {
data.lastDiscordGuildIcon = filePath;
} catch (err) {
console.error(err);
return;
}
data.lastDiscordGuildEvent = eventName;
}
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit 797c5f0

Please sign in to comment.