From 04dd7a72181d69c6332692c4912c8fb5274a6581 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Tue, 5 Sep 2023 12:36:27 +0200 Subject: [PATCH] fix: Updated some validator error messages --- src/utils/validation/systemCommandValidator.ts | 2 +- src/utils/validation/voiceChannelValidator.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/validation/systemCommandValidator.ts b/src/utils/validation/systemCommandValidator.ts index 8c20845..93ec8ea 100644 --- a/src/utils/validation/systemCommandValidator.ts +++ b/src/utils/validation/systemCommandValidator.ts @@ -25,7 +25,7 @@ export const notValidGuildId = async ({ interaction, executionId }: NotValidGuil embeds: [ new EmbedBuilder() .setDescription( - `**${embedOptions.icons.warning} Oops!**\nNo permission to execute this command.\n\nThe command **\`/${interactionIdentifier}\`** cannot be executed in this server.` + `**${embedOptions.icons.warning} Oops!**\nNo permission to perform this action.\n\nThe command **\`/${interactionIdentifier}\`** cannot be executed in this server.` ) .setColor(embedOptions.colors.warning) ] diff --git a/src/utils/validation/voiceChannelValidator.ts b/src/utils/validation/voiceChannelValidator.ts index 16a9943..8662931 100644 --- a/src/utils/validation/voiceChannelValidator.ts +++ b/src/utils/validation/voiceChannelValidator.ts @@ -24,7 +24,7 @@ export const notInVoiceChannel = async ({ interaction, executionId }: NotInVoice embeds: [ new EmbedBuilder() .setDescription( - `**${embedOptions.icons.warning} Not in a voice channel**\nYou need to be in a voice channel to use this command.` + `**${embedOptions.icons.warning} Not in a voice channel**\nYou need to be in a voice channel to perform this action.` ) .setColor(embedOptions.colors.warning) ] @@ -62,7 +62,7 @@ export const notInSameVoiceChannel = async ({ interaction, queue, executionId }: embeds: [ new EmbedBuilder() .setDescription( - `**${embedOptions.icons.warning} Not in same voice channel**\nYou need to be in the same voice channel as me to use this command.\n\n**Voice channel:** ${queue.dispatcher.channel.name}` + `**${embedOptions.icons.warning} Not in same voice channel**\nYou need to be in the same voice channel as me to perform this action.\n\n**Voice channel:** <#${queue.dispatcher.channel.id}>` ) .setColor(embedOptions.colors.warning) ]