fix idenify not being patched
This commit is contained in:
parent
77706dde2c
commit
2e6383c493
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue