Its my first time trying core since I want to have a lightbuild gateway helper and I think I do something wrong?
This is my current test script
const gateway = new WebSocketManager({
token: '',
intents: GatewayIntentBits.Guilds,
rest: GatewayManager.getRest(),
});
const client = new Client({rest: GatewayManager.getRest(), gateway});
client.once(GatewayDispatchEvents.Ready, this.onReady);
client.on(GatewayDispatchEvents.GuildCreate, this.onGuildCreate);
client.once(GatewayDispatchEvents.GuildDelete, this.onGuildDelete);
await gateway.connect();
const shards = await gateway.getShardIds();
for (const shardId of shards) {
await gateway.send(shardId, {
"op": 3,
"d": {
"activities": [{
"name": "We love casting spells | Memer.gg",
"type": 4
}],
"status": "online",
}
});
}
The issue I see is that it dont set the status but I thought thats the way to do it? xD