Skip to content

Commit 9c55296

Browse files
committed
use default typings for Select in examples
1 parent 102502f commit 9c55296

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/views/channel_select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DropdownView(discord.ui.View):
1111
placeholder="Select channels...", min_values=1, max_values=3
1212
) # Users can select a maximum of 3 channels in the dropdown
1313
async def channel_select_dropdown(
14-
self, select: discord.ui.Select, interaction: discord.Interaction
14+
self, select: discord.ui.ChannelSelect, interaction: discord.Interaction
1515
) -> None:
1616
# update the select default values to the chosen values
1717
select.default_values = select.values # this is a list of GuildChannels

examples/views/role_select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DropdownView(discord.ui.View):
1111
placeholder="Select roles...", min_values=1, max_values=3
1212
) # Users can select a maximum of 3 roles in the dropdown
1313
async def role_select_dropdown(
14-
self, select: discord.ui.Select, interaction: discord.Interaction
14+
self, select: discord.ui.RoleSelect, interaction: discord.Interaction
1515
) -> None:
1616
# update the select default values to set them to the select ones
1717
select.default_values = select.values # this is a list of Role

0 commit comments

Comments
 (0)