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;
|
if (!dmChannel) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
console.log(`Sending welcome message to ${member.id}`);
|
||||||
await createChunkedMessage(dmChannel, formatted);
|
await createChunkedMessage(dmChannel, formatted);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
pluginData.state.logs.log(LogType.BOT_ALERT, {
|
pluginData.state.logs.log(LogType.BOT_ALERT, {
|
||||||
|
|
|
@ -878,6 +878,7 @@ export async function notifyUser(
|
||||||
for (const method of methods) {
|
for (const method of methods) {
|
||||||
if (method.type === "dm") {
|
if (method.type === "dm") {
|
||||||
try {
|
try {
|
||||||
|
console.log(`Notifying user ${user.id} via DM`);
|
||||||
const dmChannel = await user.getDMChannel();
|
const dmChannel = await user.getDMChannel();
|
||||||
await dmChannel.createMessage(body);
|
await dmChannel.createMessage(body);
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Reference in a new issue