diff --git a/lang/en-US/commands.json b/lang/en-US/commands.json index 2d65a131..16a22f76 100644 --- a/lang/en-US/commands.json +++ b/lang/en-US/commands.json @@ -46,7 +46,12 @@ "not_found": "The command `%COMMAND%` doesn't exist!" }, "texture": { - "not_found": "No results were found for %TEXTURENAME%. Have you made a typo?" + "failed_search": "Texture search failed!", + "too_short": "You need at least three characters to start a texture search!", + "no_results": { + "title": "No results found!", + "description": "No results were found for %TEXTURENAME%. Have you made a typo?" + } }, "info": { "title": "Hi, I'm CompliBot. I was made for the Faithful Discord servers.", diff --git a/src/events/guildCreate.ts b/src/events/guildCreate.ts index fac49b13..e0455902 100644 --- a/src/events/guildCreate.ts +++ b/src/events/guildCreate.ts @@ -11,7 +11,7 @@ export default { client.loadSlashCommands(); const embed = new EmbedBuilder() - .setTitle("Thanks for Inviting me") + .setTitle("Thanks for inviting me") .setDescription("To get started, try to type `/` to see all available slash commands!"); guild.systemChannel?.send({ embeds: [embed] }); diff --git a/src/helpers/functions/parseTextureName.ts b/src/helpers/functions/parseTextureName.ts index 889b56e9..16673a5c 100644 --- a/src/helpers/functions/parseTextureName.ts +++ b/src/helpers/functions/parseTextureName.ts @@ -20,8 +20,8 @@ export default async function parseTextureName( await interaction.ephemeralReply({ embeds: [ new EmbedBuilder() - .setTitle("Action failed!") - .setDescription("You need at least three characters to start a texture search!") + .setTitle(interaction.strings().command.texture.failed_search) + .setDescription(interaction.strings().command.texture.too_short) .setColor(colors.red), ], }); @@ -42,9 +42,11 @@ export default async function parseTextureName( await interaction.ephemeralReply({ embeds: [ new EmbedBuilder() - .setTitle("No results found!") + .setTitle(interaction.strings().command.texture.no_results.title) .setDescription( - interaction.strings().command.texture.not_found.replace("%TEXTURENAME%", `\`${name}\``), + interaction + .strings() + .command.texture.no_results.description.replace("%TEXTURENAME%", `\`${name}\``), ) .setColor(colors.red), ],