From 931e6a7ae611c5d14609a359e0f3107cca14e2f5 Mon Sep 17 00:00:00 2001 From: Mirabellier Date: Sat, 24 Feb 2024 23:35:34 +0800 Subject: [PATCH] fix typo --- src/commands/rpg/register.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/rpg/register.js b/src/commands/rpg/register.js index 5de9b72..608a3f4 100644 --- a/src/commands/rpg/register.js +++ b/src/commands/rpg/register.js @@ -121,7 +121,7 @@ module.exports = { const prompt = interaction.options.getString("class"); try { - const chaClass = classes[args[0].toLowerCase()]; + const chaClass = classes[prompt.toLowerCase()]; const characterKeys = Object.keys(characters); const randomIndex = Math.floor(Math.random() * characterKeys.length); const randomCharacterKey = characterKeys[randomIndex];