mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
Fix error reporting in WelcomeMessage
This commit is contained in:
parent
db2db7f172
commit
17aac769bb
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ export class WelcomeMessagePlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
if (!dmChannel) return;
|
if (!dmChannel) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
createChunkedMessage(dmChannel, formatted);
|
await createChunkedMessage(dmChannel, formatted);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logs.log(LogType.BOT_ALERT, {
|
this.logs.log(LogType.BOT_ALERT, {
|
||||||
body: `Failed send a welcome DM to {userMention(member)}`,
|
body: `Failed send a welcome DM to {userMention(member)}`,
|
||||||
|
@ -67,7 +67,7 @@ export class WelcomeMessagePlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
if (!channel || !(channel instanceof TextChannel)) return;
|
if (!channel || !(channel instanceof TextChannel)) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
createChunkedMessage(channel, formatted);
|
await createChunkedMessage(channel, formatted);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logs.log(LogType.BOT_ALERT, {
|
this.logs.log(LogType.BOT_ALERT, {
|
||||||
body: `Failed send a welcome message for {userMention(member)} to {channelMention(channel)}`,
|
body: `Failed send a welcome message for {userMention(member)} to {channelMention(channel)}`,
|
||||||
|
|
Loading…
Add table
Reference in a new issue