summary refs log tree commit diff
diff options
context:
space:
mode:
authorochen1 <o.chen1@share.epsb.ca>2023-04-09 11:13:28 -0600
committerGitHub <noreply@github.com>2023-04-09 11:13:28 -0600
commit73276696728fd61705fc6242a459dec8411a8972 (patch)
treee9e10ecdd11b566db2ba7c5f192d710a9db1fefa
parentLicense information (diff)
downloadserver-73276696728fd61705fc6242a459dec8411a8972.tar.xz
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
-rw-r--r--src/gateway/opcodes/Identify.ts2
1 files changed, 2 insertions, 0 deletions
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