From cc56f31bcdb913577b2d6a3feb67ae534a27192d Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 25 Apr 2021 09:55:07 -0400 Subject: [PATCH] Fix emoji not showing up in button component --- discord/components.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/components.py b/discord/components.py index 714876a73..853ea1edc 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: