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 985c640 commit fa77faaCopy full SHA for fa77faa
discord/components.py
@@ -437,9 +437,7 @@ def __init__(self, data: SelectMenuPayload):
437
self.channel_types: list[ChannelType] = [
438
try_enum(ChannelType, ct) for ct in data.get("channel_types", [])
439
]
440
- self.required: bool | None = data.get(
441
- "required"
442
- )
+ self.required: bool | None = data.get("required")
443
444
def to_dict(self) -> SelectMenuPayload:
445
payload: SelectMenuPayload = {
0 commit comments