This commit is contained in:
memetrollsXD 2022-07-31 11:41:37 +02:00
commit 49767f7c4c
No known key found for this signature in database
GPG Key ID: 105C2F3417AC32CD
2 changed files with 4 additions and 3 deletions

View File

@ -1,2 +1,3 @@
# CrepeSR # CrepeSR
SR
[Discord](https://discord.gg/sCAC282C)

View File

@ -37,7 +37,7 @@ export default class Packet {
return str.startsWith("01234567") && str.endsWith("89abcdef"); return str.startsWith("01234567") && str.endsWith("89abcdef");
} }
public static encode(name: string, body: {}, customCmdId?: number): Packet | null { public static encode(name: PacketType, body: {}, customCmdId?: number): Packet | null {
try { try {
// @ts-ignore - Bullshit. You can just get enums by name // @ts-ignore - Bullshit. You can just get enums by name
const cmdid = CmdID[name]; const cmdid = CmdID[name];