summary refs log tree commit diff
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
commitb25fa163ae2388c6dcf251c2f0ee19ac15b64864 (patch)
tree2c5b4fd2af63248c5e94be99175655c209301082
parentRemove IP logging from gateway (diff)
downloadserver-b25fa163ae2388c6dcf251c2f0ee19ac15b64864.tar.xz
Remove unneeded comments
-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