From 83ab674cdd57fb81cbfff80f6c50b47ba7e3ef23 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Tue, 4 Apr 2023 21:12:00 -0500 Subject: [PATCH] Added /drawtriangle command --- commands/drawTriangle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/drawTriangle.ts b/commands/drawTriangle.ts index eceabae..0dbf3f0 100644 --- a/commands/drawTriangle.ts +++ b/commands/drawTriangle.ts @@ -16,7 +16,7 @@ module.exports = { ), async execute(interaction, client) { var inputString = interaction.options.getString('string'); - var design = interaction.options.getString('design'); + var design = parseInt(interaction.options.getString('design')); if (design < 1 || design > 3) { await interaction.reply('Invalid design choice.'); }