Browse Source

Fix certain select types not appearing in Message.components

pull/9465/head
Soheab_ 2 years ago
committed by GitHub
parent
commit
0efc05ccce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      discord/components.py

4
discord/components.py

@ -527,7 +527,7 @@ def _component_factory(data: ComponentPayload) -> Optional[Union[ActionRow, Acti
return ActionRow(data)
elif data['type'] == 2:
return Button(data)
elif data['type'] == 3:
return SelectMenu(data)
elif data['type'] == 4:
return TextInput(data)
elif data['type'] in (3, 5, 6, 7, 8):
return SelectMenu(data)

Loading…
Cancel
Save