From 60c543059494e6706c4080ee6230a99adb2265c5 Mon Sep 17 00:00:00 2001 From: William Perron Date: Mon, 1 Jan 2024 17:04:04 -0500 Subject: [PATCH] add doc comment --- cmd/themis-server/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/themis-server/main.go b/cmd/themis-server/main.go index fa505e1..3d2a21d 100644 --- a/cmd/themis-server/main.go +++ b/cmd/themis-server/main.go @@ -486,6 +486,11 @@ func main() { Components: []discordgo.MessageComponent{ discordgo.ActionsRow{ Components: []discordgo.MessageComponent{ + // Note: Currently, Discord *requires* modal have at least one field present, it's not + // possible to simply have a cancel/confirm box. That is why this modal uses an old + // school [y/N] confirmation. + // + // source: https://stackoverflow.com/questions/71874810/discord-modals-without-textinputcomponent-but-a-text-and-button-only#answer-74317739 discordgo.TextInput{ CustomID: "confirmation", Label: "Delete all claims permanently? [y/N]",