From eac9ec48b12bacdb6a69415f6cd75455ea49b873 Mon Sep 17 00:00:00 2001 From: Jefferey Neuffer <35882868+j7126@users.noreply.github.com> Date: Wed, 25 Jan 2023 13:13:32 +1000 Subject: [PATCH] Minor message improvements (#865) --- src/commands/disconnect.ts | 2 +- src/commands/stop.ts | 2 +- src/utils/error-msg.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/disconnect.ts b/src/commands/disconnect.ts index d9f025a..0081cc1 100644 --- a/src/commands/disconnect.ts +++ b/src/commands/disconnect.ts @@ -28,6 +28,6 @@ export default class implements Command { player.disconnect(); - await interaction.reply('u betcha'); + await interaction.reply('u betcha, disconnected'); } } diff --git a/src/commands/stop.ts b/src/commands/stop.ts index 71b33db..818fda6 100644 --- a/src/commands/stop.ts +++ b/src/commands/stop.ts @@ -32,6 +32,6 @@ export default class implements Command { } player.stop(); - await interaction.reply('u betcha'); + await interaction.reply('u betcha, stopped'); } } diff --git a/src/utils/error-msg.ts b/src/utils/error-msg.ts index ef03e76..1417a7e 100644 --- a/src/utils/error-msg.ts +++ b/src/utils/error-msg.ts @@ -3,9 +3,9 @@ export default (error?: string | Error): string => { if (error) { if (typeof error === 'string') { - str = `🚫ope: ${error}`; + str = `🚫 ope: ${error}`; } else if (error instanceof Error) { - str = `🚫ope: ${error.message}`; + str = `🚫 ope: ${error.message}`; } }