diff options
author | ochen1 <o.chen1@share.epsb.ca> | 2023-04-09 11:13:28 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-09 11:13:28 -0600 |
commit | 73276696728fd61705fc6242a459dec8411a8972 (patch) | |
tree | e9e10ecdd11b566db2ba7c5f192d710a9db1fefa /src | |
parent | License information (diff) | |
download | server-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
Diffstat (limited to 'src')
-rw-r--r-- | src/gateway/opcodes/Identify.ts | 2 |
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 |