DM debug
This commit is contained in:
parent
ae810e99f8
commit
d53d518903
2 changed files with 2 additions and 0 deletions
|
@ -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, {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue