From 951b12377240c628a8869444789f2e9e8866a329 Mon Sep 17 00:00:00 2001 From: Xevion Date: Fri, 16 Feb 2024 14:45:23 -0600 Subject: [PATCH] Switch code option to string --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 9f4c47c..4274c12 100644 --- a/commands.go +++ b/commands.go @@ -36,7 +36,7 @@ var SearchCommandDefinition = &discordgo.ApplicationCommand{ Required: false, }, { - Type: discordgo.ApplicationCommandOptionInteger, + Type: discordgo.ApplicationCommandOptionString, Name: "code", MinLength: GetPointer(2), Description: "Course Code (e.g. 3743, 3000-3999, 3xxx, 3000-)",