3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 00:05:04 +00:00

DM debug 2

This commit is contained in:
Dragory 2020-08-20 10:19:43 +03:00
parent 53ce975b7f
commit 7b2d23ddc4

View file

@ -20,11 +20,10 @@ export const SendWelcomeMessageEvt = welcomeEvent({
});
if (config.send_dm) {
const dmChannel = await member.user.getDMChannel();
if (!dmChannel) return;
try {
console.log(`Sending welcome message to ${member.id}`);
const dmChannel = await member.user.getDMChannel();
if (!dmChannel) return;
await createChunkedMessage(dmChannel, formatted);
} catch (e) {
pluginData.state.logs.log(LogType.BOT_ALERT, {