From 2e6383c493e47766d90273bdc9cbed6bc3176365 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 25 Sep 2023 14:12:14 -0600 Subject: [PATCH] fix idenify not being patched --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 1b3bc1b..63d56c5 100644 --- a/src/index.js +++ b/src/index.js @@ -127,7 +127,7 @@ instead("spawn", bot.shards, function (args, orig) { const ret = orig.apply(this, args); const shard = this.get(args[0]); if (shard) { - before("sendWS", shard.prototype, function ([op, _data]) { + before("sendWS", shard.__proto__, function ([op, _data]) { if (op === Dysnomia.Constants.GatewayOPCodes.IDENTIFY) { _data.properties.browser = "Discord Embedded"; delete _data.properties.device;