Send guild name and icon of guild through Identify gateway opcode

These properties are mandatory as per the documentation:
https://discord.com/developers/docs/resources/guild#guild-object
This commit is contained in:
ochen1
2023-04-09 11:13:28 -06:00
committed by GitHub
parent 844f1de6aa
commit 7327669672
+2
View File
@@ -295,6 +295,8 @@ export async function onIdentify(this: WebSocket, data: Payload) {
...new ReadyGuildDTO(x).toJSON(),
guild_hashes: {},
joined_at: x.joined_at,
name: x.name,
icon: x.icon,
};
}),
guild_experiments: [], // TODO