Fix responseText format tokens

This commit is contained in:
2023-12-12 03:20:43 -06:00
parent df8adc32b5
commit cc2536ab99

View File

@@ -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)]