Skip to content

Commit

Permalink
docs(Icelink): make jsdoc for updateInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
Fab1o0107 committed Jan 27, 2024
1 parent 38988c2 commit f027f6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Icelink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ export abstract class Icelink extends EventEmitter {
node.disconnect(1000, reason);
}

/**
* update an instance for voice connection (voice state, and voice server).
* @param packet Packet instance from Discord Gateway.
*/
public updateInstance(packet: any): void {
const guildId = packet.d.guild_id;
const connection = this.connections.get(guildId);
Expand Down

0 comments on commit f027f6c

Please sign in to comment.