From 6439590e28b6baab8393c83676e5c42c3679c428 Mon Sep 17 00:00:00 2001 From: DevAndromeda <46562212+DevAndromeda@users.noreply.github.com> Date: Thu, 12 Aug 2021 16:07:43 +0545 Subject: [PATCH] refactor(Queue): remove mute/unmute --- package.json | 6 +++--- src/Structures/Queue.ts | 18 ------------------ 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 9145d21..72d79eb 100644 --- a/package.json +++ b/package.json @@ -79,8 +79,8 @@ "@favware/rollup-type-bundler": "^1.0.3", "@types/node": "^16.4.13", "@types/ws": "^7.4.7", - "@typescript-eslint/eslint-plugin": "^4.29.0", - "@typescript-eslint/parser": "^4.29.0", + "@typescript-eslint/eslint-plugin": "^4.29.1", + "@typescript-eslint/parser": "^4.29.1", "discord-api-types": "^0.22.0", "discord.js": "^13.0.1", "eslint": "^7.32.0", @@ -89,7 +89,7 @@ "jsdoc-babel": "^0.5.0", "prettier": "^2.3.2", "rimraf": "^3.0.2", - "ts-node": "^10.1.0", + "ts-node": "^10.2.0", "typescript": "^4.3.5" } } diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index cfab145..cc7363a 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -315,24 +315,6 @@ class Queue { this.setVolume(amount); } - /** - * Mutes the playback - * @returns {void} - */ - mute() { - const lv = this.#lastVolume; - this.volume = 0; - this.#lastVolume = lv; - } - - /** - * Unmutes the playback. If the last volume was set to 0, unmute will produce no effect. - * @returns {void} - */ - unmute() { - this.volume = this.#lastVolume; - } - /** * The stream time of this queue * @type {number}