3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 08:45:03 +00:00

Hotfix 12

This commit is contained in:
Dragory 2021-08-18 23:03:28 +03:00
parent 9e3b8278c0
commit 198798426c

View file

@ -225,6 +225,11 @@ export class GuildSavedMessages extends BaseGuildRepository {
const existingSavedMsg = await this.find(msg.id);
if (existingSavedMsg) return;
// FIXME: Hotfix
if (!msg.channel) {
return;
}
const savedMessageData = this.msgToSavedMessageData(msg);
const postedAt = moment.utc(msg.createdTimestamp, "x").format("YYYY-MM-DD HH:mm:ss");