Skip to content

Commit

Permalink
add reason
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Jan 10, 2025
1 parent d518f6c commit 69da663
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/services/discord/modules/discord-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ export default async (bot: DiscordBot): Promise<void> => {
usr.roles.remove(DiscordConfig.roles.event);
});
}
await bot.setIcon();
await bot.setServerBanner();
await bot.setNickname(undefined, event.name + " ended");
const reason = event.name + " ended";
await bot.setIcon(undefined, reason);
await bot.setServerBanner(undefined, reason);
await bot.setNickname(undefined, reason);
};

bot.discord.on("guildScheduledEventUpdate", async (old, now) => {
Expand Down

0 comments on commit 69da663

Please sign in to comment.