mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
Hotfix 12
This commit is contained in:
parent
9713e2c99b
commit
b06e51f25c
1 changed files with 5 additions and 0 deletions
|
@ -225,6 +225,11 @@ export class GuildSavedMessages extends BaseGuildRepository {
|
||||||
const existingSavedMsg = await this.find(msg.id);
|
const existingSavedMsg = await this.find(msg.id);
|
||||||
if (existingSavedMsg) return;
|
if (existingSavedMsg) return;
|
||||||
|
|
||||||
|
// FIXME: Hotfix
|
||||||
|
if (!msg.channel) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const savedMessageData = this.msgToSavedMessageData(msg);
|
const savedMessageData = this.msgToSavedMessageData(msg);
|
||||||
const postedAt = moment.utc(msg.createdTimestamp, "x").format("YYYY-MM-DD HH:mm:ss");
|
const postedAt = moment.utc(msg.createdTimestamp, "x").format("YYYY-MM-DD HH:mm:ss");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue