diff --git a/src/actions/dm/dm.service.ts b/src/actions/dm/dm.service.ts index 6cfba0e..1cc7c96 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.channelIdNotification); + const channel = channels.cache.get(config.discord.channelIdLog); 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.channelIdNotification); + const channel = channels.cache.get(config.discord.channelIdLog); 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.channelIdNotification); + const channel = channels.cache.get(config.discord.channelIdLog); 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.channelIdNotification); + const channel = channels.cache.get(config.discord.channelIdLog); 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.channelIdNotification); + const channel = channels.cache.get(config.discord.channelIdLog); 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 5a1195b..761a049 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,12 +1,12 @@ export default { discord: { - version: 250602.10, + version: 250606.0022, // avocadi serverID: process.env.DISCORD_SERVER_ID || "", // texxt channel channelIdBot: process.env.DISCORD_CHANNEL_ID_BOT || "", channelIdFeedback: process.env.DISCORD_CHANNEL_ID_FEEDBACK || "", - channelIdNotification: process.env.DISCORD_CHANNEL_ID_NOTIFICATION || "", + channelIdLog: 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 || "",