From 323f604f45778f4620d5de7558d828349811aca7 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 13 Jan 2022 21:43:35 -0500 Subject: fix server logging --- src/listeners/guild/guildCreate.ts | 2 +- src/listeners/guild/guildDelete.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/listeners') diff --git a/src/listeners/guild/guildCreate.ts b/src/listeners/guild/guildCreate.ts index 418df3a..b8c6d89 100644 --- a/src/listeners/guild/guildCreate.ts +++ b/src/listeners/guild/guildCreate.ts @@ -14,7 +14,7 @@ export default class GuildCreateListener extends BushListener { const g = await Guild.findByPk(guild.id); if (!g) void Guild.create({ id: guild.id }); - const channel = await util.getConfigChannel('log'); + const channel = await util.getConfigChannel('servers'); if (!channel) return; return await channel.send({ embeds: [ diff --git a/src/listeners/guild/guildDelete.ts b/src/listeners/guild/guildDelete.ts index f036a8d..c9070df 100644 --- a/src/listeners/guild/guildDelete.ts +++ b/src/listeners/guild/guildDelete.ts @@ -12,7 +12,7 @@ export default class GuildDeleteListener extends BushListener { public override async exec(...[guild]: BushClientEvents['guildDelete']) { void client.console.info('guildDelete', `Left <<${guild.name}>> with <<${guild.memberCount?.toLocaleString()}>> members.`); - const channel = await util.getConfigChannel('log'); + const channel = await util.getConfigChannel('servers'); if (!channel) return; return await channel.send({ embeds: [ -- cgit