mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix emoji not showing up in button component
This commit is contained in:
1 parent
98570793e4
commit
cc56f31bcd
1 file changed
+4
@@ -143,9 +143,13 @@ class Button(Component):
|
||||
}
|
||||
if self.custom_id:
|
||||
payload['custom_id'] = self.custom_id
|
||||
|
||||
if self.url:
|
||||
payload['url'] = self.url
|
||||
|
||||
if self.emoji:
|
||||
payload['emoji'] = self.emoji.to_dict()
|
||||
|
||||
return payload # type: ignore
|
||||
|
||||
def _component_factory(data: ComponentPayload) -> Component:
|
||||
|
||||
Reference in new issue
Block a user