backfilling — first steps

This commit is contained in:
Erkin Alp Güney
2022-04-23 10:56:47 +03:00
parent f60ffd3c41
commit 4a4c16cf48
2 changed files with 87 additions and 2 deletions
+2 -1
View File
@@ -91,7 +91,8 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
if (opts.message_reference.channel_id !== opts.channel_id) throw new HTTPError("You can only reference messages from this channel");
}
}
// Q: should be checked if the referenced message exists? ANSWER: NO
/** Q: should be checked if the referenced message exists? ANSWER: NO
otherwise backfilling won't work **/
// @ts-ignore
message.type = MessageType.REPLY;
}