File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class DropdownView(discord.ui.View):
11
11
placeholder = "Select channels..." , min_values = 1 , max_values = 3
12
12
) # Users can select a maximum of 3 channels in the dropdown
13
13
async def channel_select_dropdown (
14
- self , select : discord .ui .Select , interaction : discord .Interaction
14
+ self , select : discord .ui .ChannelSelect , interaction : discord .Interaction
15
15
) -> None :
16
16
# update the select default values to the chosen values
17
17
select .default_values = select .values # this is a list of GuildChannels
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class DropdownView(discord.ui.View):
11
11
placeholder = "Select roles..." , min_values = 1 , max_values = 3
12
12
) # Users can select a maximum of 3 roles in the dropdown
13
13
async def role_select_dropdown (
14
- self , select : discord .ui .Select , interaction : discord .Interaction
14
+ self , select : discord .ui .RoleSelect , interaction : discord .Interaction
15
15
) -> None :
16
16
# update the select default values to set them to the select ones
17
17
select .default_values = select .values # this is a list of Role
You can’t perform that action at this time.
0 commit comments