From f8e8f2d8a9f224e91561a5551574d7f1b510ed97 Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Fri, 11 Jun 2021 15:26:48 +0545 Subject: [PATCH] feat(VoiceSubscription): mirror basic methods --- src/VoiceInterface/VoiceSubscription.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/VoiceInterface/VoiceSubscription.ts b/src/VoiceInterface/VoiceSubscription.ts index 4ae9829..db782d3 100644 --- a/src/VoiceInterface/VoiceSubscription.ts +++ b/src/VoiceInterface/VoiceSubscription.ts @@ -107,6 +107,14 @@ class VoiceSubscription extends EventEmitter { this.audioPlayer.stop(); } + pause(interpolateSilence?: boolean) { + return this.audioPlayer.pause(interpolateSilence); + } + + resume() { + return this.audioPlayer.unpause(); + } + /** * Play stream * @param {AudioResource} resource The audio resource to play