summary refs log tree commit diff
path: root/src/gateway/opcodes/Identify.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-02-19 21:19:41 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-02-19 21:19:41 +0100
commitfafa4dedb2b212cf58bbceec2ed468d03e0c2175 (patch)
tree64177f438939847e284e85d4d0a453de84936f2e /src/gateway/opcodes/Identify.ts
parentImplement default avatars #979 (diff)
downloadserver-dev/dsharpplus-minimum-endpoints.tar.xz
Get DSharpPlus up and running. dev/dsharpplus-minimum-endpoints
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Diffstat (limited to 'src/gateway/opcodes/Identify.ts')
-rw-r--r--src/gateway/opcodes/Identify.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts
index 030ca66e..6227b578 100644
--- a/src/gateway/opcodes/Identify.ts
+++ b/src/gateway/opcodes/Identify.ts
@@ -95,6 +95,8 @@ export async function onIdentify(this: WebSocket, data: Payload) {
 					"guild.emojis",
 					"guild.roles",
 					"guild.stickers",
+					"guild.members", //root@Rory - 19/02/2023 - required for DSharpPlus
+					"guild.members.user", //root@Rory - 19/02/2023 - required for DSharpPlus
 					"user",
 					"roles",
 				],
@@ -163,6 +165,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
 	let guilds: Partial<Guild>[] = members.map((x) => ({
 		...x.guild,
 		joined_at: x.joined_at,
+		presences: [], //root@Rory - 19/02/2023 - required for DSharpPlus
 	}));
 
 	const pending_guilds: typeof guilds = [];