From 14b9fe25e118c8ff8384449dd5723a7f7e1478e4 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 9 Apr 2023 02:29:17 -0400 Subject: [PATCH] *Pass along the message id --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index 258185f..c9c893a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -233,18 +233,21 @@ class Message extends Client { switch (data.action) { case "encode": update({ + id: data.id, action: "encode", args: [await this.encoding.encode?.(...data.args), data.args[0]], }); break; case "decode": update({ + id: data.id, action: "decode", args: [await this.encoding.decode?.(...data.args), data.args[0]], }); break; case "preencode": update({ + id: data.id, action: "preencode", args: [ await this.encoding.preencode?.(...data.args),