Skip to content

Commit

Permalink
fix: don't ignore allow_multiselect when serializing (#1705)
Browse files Browse the repository at this point in the history
* fix: don't ignore allow_multiselect when serializing

* ci: correct from checks.

---------

Signed-off-by: Katelyn Gigante <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Katelyn Gigante <[email protected]>
  • Loading branch information
3 people authored Jun 27, 2024
1 parent 1dac6e0 commit 3610f22
Showing 1 changed file with 1 addition and 2 deletions.
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

0 comments on commit 3610f22

Please sign in to comment.