mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-17 11:19:00 +00:00
Fix certain select types not appearing in Message.components
This commit is contained in:
parent
a7f2c670c9
commit
0efc05ccce
@ -527,7 +527,7 @@ def _component_factory(data: ComponentPayload) -> Optional[Union[ActionRow, Acti
|
|||||||
return ActionRow(data)
|
return ActionRow(data)
|
||||||
elif data['type'] == 2:
|
elif data['type'] == 2:
|
||||||
return Button(data)
|
return Button(data)
|
||||||
elif data['type'] == 3:
|
|
||||||
return SelectMenu(data)
|
|
||||||
elif data['type'] == 4:
|
elif data['type'] == 4:
|
||||||
return TextInput(data)
|
return TextInput(data)
|
||||||
|
elif data['type'] in (3, 5, 6, 7, 8):
|
||||||
|
return SelectMenu(data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user