mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-29 16:55:45 +00:00
identify: use proto toVoiceState
This commit is contained in:
@@ -811,7 +811,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
|
||||
|
||||
const readySupplementalGuilds = (guilds.filter((guild) => !guild.unavailable) as Guild[]).map((guild) => {
|
||||
return {
|
||||
voice_states: guild.voice_states.map((state) => state.toPublicVoiceState()),
|
||||
voice_states: guild.voice_states.map((state) => VoiceState.prototype.toPublicVoiceState.apply(state)),
|
||||
id: guild.id,
|
||||
embedded_activities: [],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user