feat(config): disable channel for xp

This commit is contained in:
Anhgelus Morhtuuzh 2024-04-15 16:44:46 +02:00
parent 5451dd0e81
commit f97df035c3
No known key found for this signature in database
GPG key ID: CF4550297832A29F
4 changed files with 106 additions and 9 deletions

18
main.go
View file

@ -64,6 +64,24 @@ func main() {
"Rôle",
).IsRequired()).
SetHandler(commands.ConfigXP),
).
AddSub(
gokord.NewCommand("disabled-channels", "Modifie les salons désactivés").
HasOption().
AddOption(gokord.NewOption(
discordgo.ApplicationCommandOptionString,
"type",
"Type d'action à effectuer",
).
AddChoice(gokord.NewChoice("Désactiver", "add")).
AddChoice(gokord.NewChoice("Activer", "del")).IsRequired(),
).
AddOption(gokord.NewOption(
discordgo.ApplicationCommandOptionChannel,
"channel",
"Salon à modifier",
).IsRequired()).
SetHandler(commands.ConfigChannel),
)
bot := gokord.Bot{