From 73276696728fd61705fc6242a459dec8411a8972 Mon Sep 17 00:00:00 2001 From: ochen1 Date: Sun, 9 Apr 2023 11:13:28 -0600 Subject: 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 --- src/gateway/opcodes/Identify.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index de3b3cfe..98fae3ed 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -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 -- cgit 1.4.1