3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Optimize/tweak message saving

This commit is contained in:
Dragory 2021-09-04 19:05:47 +03:00
parent 5ae5e7bc1d
commit 0d1bfefce0
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 16 additions and 23 deletions

View file

@ -226,9 +226,6 @@ export class GuildSavedMessages extends BaseGuildRepository {
}
async createFromMsg(msg: Message, overrides = {}) {
const existingSavedMsg = await this.find(msg.id);
if (existingSavedMsg) return;
// FIXME: Hotfix
if (!msg.channel) {
return;