aboutsummaryrefslogtreecommitdiff
path: root/src/commands/pause.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/pause.ts')
-rw-r--r--src/commands/pause.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/commands/pause.ts b/src/commands/pause.ts
index 5d87b87..fc98bdf 100644
--- a/src/commands/pause.ts
+++ b/src/commands/pause.ts
@@ -4,7 +4,6 @@ import {TYPES} from '../types.js';
import {inject, injectable} from 'inversify';
import PlayerManager from '../managers/player.js';
import {STATUS} from '../services/player.js';
-import errorMsg from '../utils/error-msg.js';
import Command from '.';
@injectable()
@@ -25,11 +24,7 @@ export default class implements Command {
const player = this.playerManager.get(interaction.guild!.id);
if (player.status !== STATUS.PLAYING) {
- await interaction.reply({
- content: errorMsg('not currently playing'),
- ephemeral: true,
- });
- return;
+ throw new Error('not currently playing');
}
player.pause();