Prettier
This commit is contained in:
@@ -259,7 +259,10 @@ export async function onIdentify(this: WebSocket, data: Payload) {
|
||||
|
||||
const d: ReadyEventData = {
|
||||
v: 9,
|
||||
application: { id: application?.id ?? '', flags: application?.flags ?? 0 }, //TODO: check this code!
|
||||
application: {
|
||||
id: application?.id ?? "",
|
||||
flags: application?.flags ?? 0,
|
||||
}, //TODO: check this code!
|
||||
user: privateUser,
|
||||
user_settings: user.settings,
|
||||
// @ts-ignore
|
||||
@@ -267,7 +270,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
|
||||
return {
|
||||
...new ReadyGuildDTO(x as Guild & { joined_at: Date }).toJSON(),
|
||||
guild_hashes: {},
|
||||
joined_at: x.joined_at
|
||||
joined_at: x.joined_at,
|
||||
};
|
||||
}),
|
||||
guild_experiments: [], // TODO
|
||||
|
||||
@@ -159,7 +159,11 @@ async function getMembers(guild_id: string, range: [number, number]) {
|
||||
groups,
|
||||
range,
|
||||
members: items
|
||||
.map((x) => ("member" in x ? { ...x.member, settings: undefined } : undefined))
|
||||
.map((x) =>
|
||||
"member" in x
|
||||
? { ...x.member, settings: undefined }
|
||||
: undefined,
|
||||
)
|
||||
.filter((x) => !!x),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ export async function onVoiceStateUpdate(this: WebSocket, data: Payload) {
|
||||
}
|
||||
|
||||
// 'Fix' for this one voice state error. TODO: Find out why this is sent
|
||||
// It seems to be sent on client load,
|
||||
// It seems to be sent on client load,
|
||||
// so maybe its trying to find which server you were connected to before disconnecting, if any?
|
||||
if (body.guild_id == null) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user