This commit is contained in:
Dragory 2020-08-20 10:15:17 +03:00
parent ae810e99f8
commit d53d518903
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
2 changed files with 2 additions and 0 deletions

View file

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

View file

@ -878,6 +878,7 @@ export async function notifyUser(
for (const method of methods) {
if (method.type === "dm") {
try {
console.log(`Notifying user ${user.id} via DM`);
const dmChannel = await user.getDMChannel();
await dmChannel.createMessage(body);
return {