mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +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;
|
||||
|
||||
try {
|
||||
createChunkedMessage(dmChannel, formatted);
|
||||
await createChunkedMessage(dmChannel, formatted);
|
||||
} catch (e) {
|
||||
this.logs.log(LogType.BOT_ALERT, {
|
||||
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;
|
||||
|
||||
try {
|
||||
createChunkedMessage(channel, formatted);
|
||||
await createChunkedMessage(channel, formatted);
|
||||
} catch (e) {
|
||||
this.logs.log(LogType.BOT_ALERT, {
|
||||
body: `Failed send a welcome message for {userMention(member)} to {channelMention(channel)}`,
|
||||
|
|
Loading…
Add table
Reference in a new issue