diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-17 19:05:29 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-17 19:05:29 +1100 |
commit | b25fa163ae2388c6dcf251c2f0ee19ac15b64864 (patch) | |
tree | 2c5b4fd2af63248c5e94be99175655c209301082 /src | |
parent | Remove IP logging from gateway (diff) | |
download | server-b25fa163ae2388c6dcf251c2f0ee19ac15b64864.tar.xz |
Remove unneeded comments
Diffstat (limited to 'src')
-rw-r--r-- | src/gateway/opcodes/Identify.ts | 4 |
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 |