From 4b5e0d1c1cd3826c82dc75e90cdd95f807826b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Thu, 16 Nov 2023 10:58:19 -0600 Subject: [PATCH] feat: american neighbor spelling --- src/commands/ratings.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands/ratings.tsx b/src/commands/ratings.tsx index 7abe31c82..347e752b2 100644 --- a/src/commands/ratings.tsx +++ b/src/commands/ratings.tsx @@ -123,14 +123,14 @@ function addSubcommands( .addSubcommand((option) => addOptions( option - .setName('neighbours') - .setDescription('Your position and neighbours'), + .setName('neighbors') + .setDescription('Your position and neighbors'), ) .addStringOption(addUsernameChoices) .addIntegerOption((option) => option .setName('limit') - .setDescription('How many neighbours to display (default: 10)') + .setDescription('How many neighbors to display (default: 10)') .setRequired(false) .setMinValue(5) .setMaxValue(30), @@ -228,7 +228,7 @@ export const ratingsCommand = new Promise( | 'current'; const subcommand = interaction.options.getSubcommand(true) as | 'league' - | 'neighbours'; + | 'neighbors'; const limit = interaction.options.getInteger('limit') ?? 10; const seasonOption = interaction.options.getString('season'); const season = seasonOption ? parseInt(seasonOption) : undefined; @@ -414,7 +414,7 @@ export const ratingsCommand = new Promise( titleName = neighbors ? accountInfo.nickname : `No Ongoing Season - ${REGION_NAMES_SHORT[region]}`; - titleDescription = 'Ratings neighbours'; + titleDescription = 'Ratings neighbors'; playersBefore = neighbors ? neighbors[0].position - 1 : 0; playersAfter = regionRatingsInfo.count - neighbors[neighbors.length - 1].position;