File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,13 @@ internal static async Task Main()
121121 EnableCommandNotFoundException = false
122122 } ) ;
123123 extension . AddProcessor ( textCommandProcessor ) ;
124+
125+ // Use custom SlashCommandProcessor to use UnconditionallyOverwriteCommands
126+ SlashCommandProcessor slashCommandProcessor = new ( new ( )
127+ {
128+ UnconditionallyOverwriteCommands = true ,
129+ } ) ;
130+ extension . AddProcessor ( slashCommandProcessor ) ;
124131
125132 // Register context checks
126133 extension . AddCheck < RequireAuthCheck > ( ) ;
@@ -137,7 +144,7 @@ internal static async Task Main()
137144
138145 } , new CommandsConfiguration
139146 {
140- UseDefaultCommandErrorHandler = false
147+ UseDefaultCommandErrorHandler = false ,
141148 } ) ;
142149
143150 // Build the client
You can’t perform that action at this time.
0 commit comments