Skip to content

PollCreate object for HTTP CreateMessage #2569

Description

@JanItsuki

When using twilight_http::request::channel::message::create_message::CreateMessage::poll, I noticed it uses the poll object instead of a poll create request object. The poll object is different in that:

  • It uses an expiry field instead of the duration field, so you can't actually pass in a duration for the poll.
  • It has a results field that is unused in the CreateMessage request.

It seems to be a schema for accessing poll objects in a Message.
I would like for another PollCreate object with fields similar to the fields in the poll create request object to be created, and for the CreateMessage::poll to use it. It would be much easier to pass in poll durations with this change. Only current option is to use CreateMessage::payload_json.

I'm willing to help towards contributing this feature, it would be a first contribution for me here. Great project by the way~ 🩷

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions