forked from Galactic/modmail
LOL
This commit is contained in:
parent
60505a6a75
commit
0acb27135f
@ -41,7 +41,9 @@ class DiscordWebhook extends Transport {
|
||||
}
|
||||
};
|
||||
|
||||
this.webhookClient.send('', { embeds: [embed] });
|
||||
this.webhookClient.send('', { embeds: [embed] }).catch(() => {
|
||||
// DO nothing
|
||||
});
|
||||
|
||||
callback();
|
||||
}
|
||||
|
@ -352,7 +352,7 @@ class Modmail {
|
||||
this.client.logger.error(`Error during channel transition:\n${err.stack}`);
|
||||
});
|
||||
await message.delete().catch(this.client.logger.warn.bind(this.client.logger));
|
||||
if (!this.updatedThreads.includes(author.id)) this.updatedThreads.push(author.id);
|
||||
if (!this.updatedThreads.includes(userId)) this.updatedThreads.push(userId);
|
||||
|
||||
}
|
||||
|
||||
@ -398,7 +398,7 @@ class Modmail {
|
||||
await message.channel.send('Delivered.').catch(this.client.logger.error.bind(this.client.logger));
|
||||
const channel = await this.loadChannel(targetMember, history).catch(this.client.logger.error.bind(this.client.logger));
|
||||
history.push({ author: member.id, content, timestamp: Date.now(), isReply: true, anon });
|
||||
if (!this.updatedThreads.includes(author.id)) this.updatedThreads.push(author.id);
|
||||
if (!this.updatedThreads.includes(target.id)) this.updatedThreads.push(target.id);
|
||||
await channel.send({ embed }).catch(this.client.logger.error.bind(this.client.logger));
|
||||
await channel.edit({ parentID: this.readMail.id }).catch(this.client.logger.error.bind(this.client.logger));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user