From 69da663adba4d5f236c3151fddbac1600df5e4c6 Mon Sep 17 00:00:00 2001 From: Techbot121 Date: Fri, 10 Jan 2025 21:41:05 +0100 Subject: [PATCH] add reason --- app/services/discord/modules/discord-events.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/services/discord/modules/discord-events.ts b/app/services/discord/modules/discord-events.ts index afc0d1a..ae94742 100644 --- a/app/services/discord/modules/discord-events.ts +++ b/app/services/discord/modules/discord-events.ts @@ -41,9 +41,10 @@ export default async (bot: DiscordBot): Promise => { 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) => {