fix(Typing): setSpeaking public (#4109)

This commit is contained in:
Alon L
2020-04-24 10:44:37 +03:00
committed by GitHub
parent 67a74c33e1
commit e3303ac3a2
2 changed files with 1 additions and 2 deletions

View File

@@ -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;

2
typings/index.d.ts vendored
View File

@@ -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;
@@ -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;