From cc2536ab992a3bbe95c215d2ed4a1dc096288b57 Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 12 Dec 2023 03:20:43 -0600 Subject: [PATCH] Fix responseText format tokens --- commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands.go b/commands.go index fa690dc..4849857 100644 --- a/commands.go +++ b/commands.go @@ -42,9 +42,9 @@ func CodeCommandHandler(session *discordgo.Session, interaction *discordgo.Inter // TODO: Validate that the location exists // TODO: Validate that the code has no invalid characters already_set := StoreCode(code, int64(location_id), user_id) - responseText := "Your guest code at %d has been set." + responseText := "Your guest code at \"%s\" has been set." if already_set { - responseText = "Your guest code %d has been updated." + responseText = "Your guest code at \"%s\" has been updated." } location := cachedLocationsMap[uint(location_id)]