diff options
Diffstat (limited to 'discord/components.py')
| -rw-r--r-- | discord/components.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/components.py b/discord/components.py index 714876a7..853ea1ed 100644 --- a/discord/components.py +++ b/discord/components.py @@ -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: |