diff --git a/sources/common/packet.ts b/sources/common/packet.ts index acd8360..d7148ed 100644 --- a/sources/common/packet.ts +++ b/sources/common/packet.ts @@ -254,14 +254,14 @@ export function isMessage).args.params === "object") switch(argsType) { case "CHANNEL": - if(!checkRecord( + if(!(checkRecord( (data as Message<"DEEP_LINK",string>).args.params, ["guildId", "channelId", "search", "fingerprint"] as const, "string" - ) || (data as Message<"DEEP_LINK","CHANNEL">).args.params.channelId !== undefined) + ) || (data as Message<"DEEP_LINK","CHANNEL">).args.params.channelId === undefined)) return false; } - + // All is "good enough" return true; }