horsebot: use a command option to decide whether ephemeral

This commit is contained in:
2026-03-09 12:35:39 -04:00
parent e08580925d
commit 2dd75edc03
2 changed files with 13 additions and 26 deletions

View File

@@ -85,7 +85,6 @@ func main() {
r.SlashCommand("/", skillSrv.slash)
r.Autocomplete("/", skillSrv.autocomplete)
r.ButtonComponent("/swap/{id}", skillSrv.button)
r.ButtonComponent("/share/{id}", skillSrv.share)
})
opts := []bot.ConfigOpt{bot.WithDefaultGateway(), bot.WithEventListeners(r)}
@@ -144,6 +143,10 @@ var commands = []discord.ApplicationCommandCreate{
Required: true,
Autocomplete: true,
},
discord.ApplicationCommandOptionBool{
Name: "share",
Description: "Share the skill info",
},
},
},
}