1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-19 17:21:35 +02:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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