not much
This commit is contained in:
@@ -41,7 +41,19 @@ export class DmService {
|
||||
const context = `<@${message.author.id}> hat geschrieben: " ${message.content} "`;
|
||||
|
||||
console.log(context);
|
||||
client.users.send(config.discord.myId, context);
|
||||
|
||||
try {
|
||||
const channels = client.channels;
|
||||
const channel = channels.cache.get(config.discord.channelIdNotification);
|
||||
|
||||
if (channel?.isTextBased() && channel?.isSendable()) {
|
||||
await channel.send(context);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("error while forwarding a welcome msg:", error);
|
||||
}
|
||||
|
||||
//client.users.send(config.discord.myId, context);
|
||||
}
|
||||
|
||||
async acceptDm(member: GuildMember) {
|
||||
|
||||
Reference in New Issue
Block a user