File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,17 @@ use async_trait::async_trait;
4
4
use futures:: StreamExt ;
5
5
use serenity:: {
6
6
builder:: { CreateApplicationCommand , CreateInteractionResponse } ,
7
- model:: prelude:: {
8
- command:: CommandType ,
9
- component:: { ActionRowComponent , InputTextStyle } ,
10
- interaction:: {
11
- application_command:: ApplicationCommandInteraction ,
12
- message_component:: MessageComponentInteraction , InteractionResponseType ,
7
+ model:: {
8
+ prelude:: {
9
+ command:: CommandType ,
10
+ component:: { ActionRowComponent , InputTextStyle } ,
11
+ interaction:: {
12
+ application_command:: ApplicationCommandInteraction ,
13
+ message_component:: MessageComponentInteraction , InteractionResponseType ,
14
+ } ,
15
+ Message ,
13
16
} ,
14
- Message ,
17
+ Permissions ,
15
18
} ,
16
19
prelude:: Context ,
17
20
} ;
@@ -317,7 +320,8 @@ impl AppCmd for ServerSettingsCmd {
317
320
let mut cmd = CreateApplicationCommand :: default ( ) ;
318
321
cmd. localized_name ( NAME )
319
322
. kind ( CommandType :: ChatInput )
320
- . localized_desc ( DESC ) ;
323
+ . localized_desc ( DESC )
324
+ . default_member_permissions ( Permissions :: MANAGE_CHANNELS ) ;
321
325
cmd
322
326
}
323
327
You can’t perform that action at this time.
0 commit comments