From a3a73cc990fb925944ff1fd8c108a5d2483a271f Mon Sep 17 00:00:00 2001 From: mo Date: Thu, 5 Jun 2025 22:47:25 +0000 Subject: [PATCH] revert d22a6d7f62dd05851e009b454f511a25ecd0e050 revert wip --- src/actions/dm/dm.service.ts | 10 +++++----- src/config.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/actions/dm/dm.service.ts b/src/actions/dm/dm.service.ts index 1cc7c96..6cfba0e 100644 --- a/src/actions/dm/dm.service.ts +++ b/src/actions/dm/dm.service.ts @@ -25,7 +25,7 @@ export class DmService { await client.users.send(member, content); } catch (error) { const channels = client.channels; - const channel = channels.cache.get(config.discord.channelIdLog); + const channel = channels.cache.get(config.discord.channelIdNotification); if (channel?.isTextBased() && channel?.isSendable()) { await channel.send(`konnte keine private nachricht an <@${member.user.id}> senden`); } @@ -39,7 +39,7 @@ export class DmService { await client.users.send(member, dmWelcomeContent); } catch (error) { const channels = client.channels; - const channel = channels.cache.get(config.discord.channelIdLog); + const channel = channels.cache.get(config.discord.channelIdNotification); if (channel?.isTextBased() && channel?.isSendable()) { await channel.send(`konnte keine private nachricht an <@${member.user.id}> senden`); } @@ -63,7 +63,7 @@ export class DmService { try { const channels = client.channels; - const channel = channels.cache.get(config.discord.channelIdLog); + const channel = channels.cache.get(config.discord.channelIdNotification); if (channel?.isTextBased() && channel?.isSendable()) { await channel.send(context); } @@ -79,7 +79,7 @@ export class DmService { await client.users.send(member, dmAcceptedContent); } catch (error) { const channels = client.channels; - const channel = channels.cache.get(config.discord.channelIdLog); + const channel = channels.cache.get(config.discord.channelIdNotification); if (channel?.isTextBased() && channel?.isSendable()) { await channel.send(`konnte keine private nachricht an <@${member.user.id}> senden`); } @@ -94,7 +94,7 @@ export class DmService { client.users.send(member, contentRoleMentionDm); } catch (error) { const channels = client.channels; - const channel = channels.cache.get(config.discord.channelIdLog); + const channel = channels.cache.get(config.discord.channelIdNotification); if (channel?.isTextBased() && channel?.isSendable()) { await channel.send(`konnte keine private nachricht an <@${member.user.id}> senden`); } diff --git a/src/config.ts b/src/config.ts index 761a049..5a1195b 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,12 +1,12 @@ export default { discord: { - version: 250606.0022, + version: 250602.10, // avocadi serverID: process.env.DISCORD_SERVER_ID || "", // texxt channel channelIdBot: process.env.DISCORD_CHANNEL_ID_BOT || "", channelIdFeedback: process.env.DISCORD_CHANNEL_ID_FEEDBACK || "", - channelIdLog: process.env.DISCORD_CHANNEL_ID_NOTIFICATION || "", + channelIdNotification: process.env.DISCORD_CHANNEL_ID_NOTIFICATION || "", channelIdWelcome: process.env.DISCORD_CHANNEL_ID_WELCOME || "", channelIdRules: process.env.DISCORD_CHANNEL_ID_RULE || "", channelIdNews: process.env.DISCORD_CHANNEL_ID_NEWS || "",