feat(config): fallback channel

This commit is contained in:
Anhgelus Morhtuuzh 2024-04-15 16:56:01 +02:00
parent a8c0a395ac
commit 2b285f4523
No known key found for this signature in database
GPG key ID: CF4550297832A29F
3 changed files with 48 additions and 1 deletions

10
main.go
View file

@ -82,6 +82,16 @@ func main() {
"Salon à modifier",
).IsRequired()).
SetHandler(commands.ConfigChannel),
).
AddSub(
gokord.NewCommand("fallback-channel", "Modifie le salon textuel par défaut").
HasOption().
AddOption(gokord.NewOption(
discordgo.ApplicationCommandOptionChannel,
"channel",
"Salon textuel par défaut",
).IsRequired()).
SetHandler(commands.ConfigFallbackChannel),
)
bot := gokord.Bot{