wip
All checks were successful
release-tag / release-image (push) Successful in 18s

This commit is contained in:
moriese 2025-06-06 00:35:18 +02:00
parent 7a1f02ebd0
commit d22a6d7f62
2 changed files with 7 additions and 7 deletions

View File

@ -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`);
}

View File

@ -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 || "",