We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 182652e commit 97966edCopy full SHA for 97966ed
config.example.yml
@@ -16,5 +16,6 @@ discord:
16
account:
17
token: SoMetOKen22
18
app_id: 861756414082678794
19
+ cleanup_app_commands: false
20
21
prefix: m~
pkg/discord/commands.go
@@ -5,6 +5,7 @@ package discord
5
6
import (
7
"github.com/bwmarrin/discordgo"
8
+ "github.com/spf13/viper"
9
"log"
10
)
11
@@ -50,4 +51,8 @@ func SetupCommands() {
50
51
log.Printf("Created command '%v'", v.Name)
52
}
53
54
+
55
+ if viper.GetBool("discord.account.cleanup_app_commands") {
56
+ CleanupCommands()
57
+ }
58
0 commit comments