We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c96732 commit 43a09e1Copy full SHA for 43a09e1
interactions/models/discord/components.py
@@ -375,11 +375,13 @@ def converter(cls, value: Any) -> "StringSelectOption":
375
376
@classmethod
377
def from_dict(cls, data: discord_typings.SelectMenuOptionData) -> "StringSelectOption":
378
+ emoji = process_emoji(data.get("emoji"))
379
+ emoji = PartialEmoji.from_dict(emoji) if emoji else None
380
return cls(
381
label=data["label"],
382
value=data["value"],
383
description=data.get("description"),
- emoji=process_emoji(data.get("emoji")),
384
+ emoji=emoji,
385
default=data.get("default", False),
386
)
387
0 commit comments