Skip to content

Commit

Permalink
fix(Typing): setSpeaking public
Browse files Browse the repository at this point in the history
  • Loading branch information
Alon-L committed Apr 19, 2020
1 parent 5af1a55 commit ccc0e0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/client/voice/VoiceConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ class VoiceConnection extends EventEmitter {
/**
* Sets whether the voice connection should display as "speaking", "soundshare" or "none".
* @param {BitFieldResolvable} value The new speaking state
* @private
*/
setSpeaking(value) {
if (this.speaking.equals(value)) return;
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,6 @@ declare module 'discord.js' {
private reconnect(token: string, endpoint: string): void;
private sendVoiceStateUpdate(options: object): Promise<Shard>;
private setSessionID(sessionID: string): void;
private setSpeaking(value: BitFieldResolvable<SpeakingString>): void;
private setTokenAndEndpoint(token: string, endpoint: string): void;
private updateChannel(channel: VoiceChannel): void;

Expand All @@ -1605,6 +1604,7 @@ declare module 'discord.js' {
public voiceManager: ClientVoiceManager;
public disconnect(): void;
public play(input: VoiceBroadcast | Readable | string, options?: StreamOptions): StreamDispatcher;
public setSpeaking(value: BitFieldResolvable<SpeakingString>): void;

public on(event: 'authenticated' | 'closing' | 'newSession' | 'ready' | 'reconnecting', listener: () => void): this;
public on(event: 'debug', listener: (message: string) => void): this;
Expand Down

0 comments on commit ccc0e0c

Please sign in to comment.