diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-15 16:44:46 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-15 16:44:46 +0200 |
| commit | f97df035c36c546afd665a1ec7da04cad35d869a (patch) | |
| tree | 066f47b5b31323e7a88010c0f5a274c6bea6e524 /main.go | |
| parent | 5451dd0e817294c5d53b4e6f6621982bff964d40 (diff) | |
feat(config): disable channel for xp
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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{ |
