horsebot: use a command option to decide whether ephemeral
This commit is contained in:
@@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user