add doc comment

new-sql-view
William Perron 11 months ago
parent 008d025fa0
commit 60c5430594
Signed by: wperron
GPG Key ID: BFDB4EF72D73C5F2

@ -486,6 +486,11 @@ func main() {
Components: []discordgo.MessageComponent{ Components: []discordgo.MessageComponent{
discordgo.ActionsRow{ discordgo.ActionsRow{
Components: []discordgo.MessageComponent{ 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{ discordgo.TextInput{
CustomID: "confirmation", CustomID: "confirmation",
Label: "Delete all claims permanently? [y/N]", Label: "Delete all claims permanently? [y/N]",

Loading…
Cancel
Save