Skip to content

Commit

Permalink
updated naming of input variable fore apex not my main
Browse files Browse the repository at this point in the history
  • Loading branch information
bthomas2622 committed Nov 19, 2023
1 parent 87cfc49 commit 47d33d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/apex-not-my-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const data = new SlashCommandBuilder()
.setName("apex-not-my-main")
.setDescription("Generate a random Apex Legends champion, if you lose it's ok! It's not your main")
.addStringOption(option =>
option.setName("champion-class")
option.setName("class")
.setDescription("Champion Class")
.setRequired(true)
.addChoices(
Expand All @@ -23,7 +23,7 @@ const data = new SlashCommandBuilder()
* @returns {Promise<void>} void
*/
async function execute(interaction) {
const chosenCLass = interaction.options.getString("champion-class");
const chosenCLass = interaction.options.getString("class");

const apexLegendList = Object.keys(legends);
const assaultLegendList = apexLegendList.filter(legend => legends[legend].class === "assault");
Expand Down

0 comments on commit 47d33d1

Please sign in to comment.