mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-25 11:43:07 +01:00
Remove unneeded comments
This commit is contained in:
parent
64596a7f3c
commit
631213b4ec
@ -154,18 +154,18 @@ export async function onIdentify(this: WebSocket, data: Payload) {
|
|||||||
return guild;
|
return guild;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO: Rewrite this. Perhaps a DTO?
|
||||||
const user_guild_settings_entries = members.map((x) => ({
|
const user_guild_settings_entries = members.map((x) => ({
|
||||||
...DefaultUserGuildSettings,
|
...DefaultUserGuildSettings,
|
||||||
...x.settings,
|
...x.settings,
|
||||||
guild_id: x.guild.id,
|
guild_id: x.guild.id,
|
||||||
// disgusting
|
|
||||||
channel_overrides: Object.entries(
|
channel_overrides: Object.entries(
|
||||||
x.settings.channel_overrides ?? {},
|
x.settings.channel_overrides ?? {},
|
||||||
).map((y) => ({
|
).map((y) => ({
|
||||||
...y[1],
|
...y[1],
|
||||||
channel_id: y[0],
|
channel_id: y[0],
|
||||||
})),
|
})),
|
||||||
})) as any as UserGuildSettings[]; // VERY disgusting. don't care.
|
})) as any as UserGuildSettings[];
|
||||||
|
|
||||||
const channels = recipients.map((x) => {
|
const channels = recipients.map((x) => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user