summary refs log tree commit diff
path: root/src/gateway/opcodes/Identify.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/gateway/opcodes/Identify.ts')
-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