Přidání ignorace dalšího druhu zprávy při záloze
This commit is contained in:
parent
7bd90284a5
commit
17d0f71427
@ -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; }[] = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user