Přidání ignorace dalšího druhu zprávy při záloze

This commit is contained in:
Histmy 2024-11-16 11:01:49 +01:00
parent 7bd90284a5
commit 17d0f71427

View File

@ -5,8 +5,8 @@ import { CClient, Modul } from "../utils/types";
import { bazenek, log, strankovani } from "../utils/utils";
const zpracovatZpravu = (mes: Message) => new Promise<void>(async (res, rej) => {
if ([6, 7, 8, 9, 10, 11, 18, 23].includes(mes.type)) return res();
if (mes.type != 0 && mes.type != 20 && mes.type != 19) throw new Error("Neznámej message type " + mes.type.toString());
if ([6, 7, 8, 9, 10, 11, 18, 23, 46].includes(mes.type)) return res();
if (mes.type != 0 && mes.type != 20 && mes.type != 19) throw new Error("Neznamej message type " + mes.type.toString());
const reference = mes.reference?.messageId;
const attachments: { name: string; file: string; }[] = [];