Skip to content

fix: don't ignore allow_multiselect when serializing #1705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions interactions/models/discord/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
timestamp_converter,
)
from interactions.client.mixins.serialization import DictSerializationMixin
from interactions.client.utils.serializer import no_export_meta
from interactions.models.discord.emoji import PartialEmoji, process_emoji
from interactions.models.discord.enums import PollLayoutType
from interactions.models.discord.timestamp import Timestamp
Expand Down Expand Up @@ -93,7 +92,7 @@ class Poll(DictSerializationMixin):
"""Each of the answers available in the poll, up to 10."""
expiry: Timestamp = attrs.field(repr=False, default=MISSING, converter=optional(timestamp_converter))
"""Number of hours the poll is open for, up to 32 days."""
allow_multiselect: bool = attrs.field(repr=False, default=False, metadata=no_export_meta)
allow_multiselect: bool = attrs.field(repr=False, default=False)
"""Whether a user can select multiple answers."""
layout_type: PollLayoutType = attrs.field(repr=False, default=PollLayoutType.DEFAULT, converter=PollLayoutType)
"""The layout type of the poll."""
Expand Down
Loading