summary refs log tree commit diff
path: root/src/gateway/opcodes/Identify.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 19:05:29 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 19:05:29 +1100
commit631213b4ec86a8e72141086c60aa58ff4376c0a2 (patch)
tree8d8d6397d9f34e1edf72bbb4b2b3db4c6c86547b /src/gateway/opcodes/Identify.ts
parentRemove IP logging from gateway (diff)
downloadserver-631213b4ec86a8e72141086c60aa58ff4376c0a2.tar.xz
Remove unneeded comments
Diffstat (limited to '')
-rw-r--r--src/gateway/opcodes/Identify.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts
index 422261f7..fab4e375 100644
--- a/src/gateway/opcodes/Identify.ts
+++ b/src/gateway/opcodes/Identify.ts
@@ -154,18 +154,18 @@ export async function onIdentify(this: WebSocket, data: Payload) {
 		return guild;
 	});
 
+	// TODO: Rewrite this. Perhaps a DTO?
 	const user_guild_settings_entries = members.map((x) => ({
 		...DefaultUserGuildSettings,
 		...x.settings,
 		guild_id: x.guild.id,
-		// disgusting
 		channel_overrides: Object.entries(
 			x.settings.channel_overrides ?? {},
 		).map((y) => ({
 			...y[1],
 			channel_id: y[0],
 		})),
-	})) as any as UserGuildSettings[]; // VERY disgusting. don't care.
+	})) as any as UserGuildSettings[];
 
 	const channels = recipients.map((x) => {
 		// @ts-ignore