Hotfix 12

This commit is contained in:
Dragory 2021-08-18 23:03:28 +03:00
parent 9713e2c99b
commit b06e51f25c
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

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");