Skip to content

Commit b20c4c5

Browse files
authored
fix(components): Another fix related to the push
Signed-off-by: Mathieu <80390413+mccoderpy@users.noreply.github.com>
1 parent 1bd0112 commit b20c4c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def to_dict(self) -> ButtonPayload:
399399

400400
@classmethod
401401
def from_dict(cls, data: ButtonPayload) -> Button:
402-
emoji = data.pop('emoji')
402+
emoji = data.pop('emoji', None)
403403

404404
if emoji and isinstance(emoji, dict):
405405
emoji = PartialEmoji.from_dict(emoji)

0 commit comments

Comments
 (0)