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;