Skip to content

Commit 1bd0112

Browse files
authored
fix(components): Fix a crashing bug from last push
Signed-off-by: Mathieu <[email protected]>
1 parent 7375c11 commit 1bd0112

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
@@ -479,7 +479,7 @@ def to_dict(self) -> SelectOptionPayload:
479479

480480
@classmethod
481481
def from_dict(cls, data: SelectOptionPayload) -> SelectOption:
482-
emoji = data.pop('emoji')
482+
emoji = data.pop('emoji', None)
483483
if emoji:
484484
emoji = PartialEmoji.from_dict(emoji)
485485
return cls(

0 commit comments

Comments
 (0)