@@ -818,34 +818,29 @@ def uses_label(self) -> bool:
818
818
parameter as a :attr:`discord.ComponentType.channel_select`.
819
819
"""
820
820
else :
821
- class select_partial (partial ):
822
- @property
823
- def __class__ (self ) -> type [Select ]:
824
- return Select
825
-
826
- StringSelect : Select [V , str ] = select_partial (
821
+ StringSelect : Select [V , str ] = partial (
827
822
Select , select_type = ComponentType .string_select
828
823
)
829
824
"""An alias for :class:`Select` that will pass :attr:`discord.ComponentType.string_select`
830
825
as its default ``select_type``.
831
826
"""
832
- UserSelect : Select [V , User | Member ] = select_partial (
827
+ UserSelect : Select [V , User | Member ] = partial (
833
828
Select , select_type = ComponentType .user_select
834
829
)
835
830
"""An alias for :class:`Select` that will pass :attr:`discord.ComponentType.user_select`
836
831
as its default ``select_type``.
837
832
"""
838
- RoleSelect : Select [V , Role ] = select_partial (Select , select_type = ComponentType .role_select )
833
+ RoleSelect : Select [V , Role ] = partial (Select , select_type = ComponentType .role_select )
839
834
"""An alias for :class:`Select` that will pass :attr:`discord.ComponentType.role_select`
840
835
as its default ``select_type``.
841
836
"""
842
- MentionableSelect : Select [V , Role | User | Member ] = select_partial (
837
+ MentionableSelect : Select [V , Role | User | Member ] = partial (
843
838
Select , select_type = ComponentType .mentionable_select
844
839
)
845
840
"""An alias for :class:`Select` that will pass :attr:`discord.ComponentType.mentionable_select`
846
841
as its default ``select_type``.
847
842
"""
848
- ChannelSelect : Select [V , GuildChannel | Thread ] = select_partial (
843
+ ChannelSelect : Select [V , GuildChannel | Thread ] = partial (
849
844
Select , select_type = ComponentType .channel_select
850
845
)
851
846
"""An alias for :class:`Select` that will pass :attr:`discord.ComponentType.channel_select`
0 commit comments