This commit is contained in:
Moritz Riese 2025-01-10 10:56:28 +01:00
parent db6cdfcbb8
commit 2f6182b588
2 changed files with 3 additions and 2 deletions

View File

@ -73,6 +73,8 @@ export class GreetingService {
if (channel?.isTextBased() && channel?.isSendable()) {
await channel.send(welcomeContent);
}
await this.dmService.welcomePrivate(member);
} catch (error) {
console.error("error while sending a welcome msg:", error);
}
@ -247,7 +249,7 @@ export class GreetingService {
try {
const channels = client.channels;
const channel = channels.cache.get(config.discord.channelIdBot);
const channel = channels.cache.get(config.discord.channelIdWelcome);
if (channel?.isTextBased() && channel?.isSendable()) {
await channel.send(welcomeContent);

View File

@ -62,7 +62,6 @@ export default class DiscordController extends EventEmitter {
client.on("guildMemberAdd", async (member) => {
await this.greetingService.welcome(member);
await this.dmService.welcomePrivate(member);
});
}