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~ 🩷
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:expiryfield instead of thedurationfield, so you can't actually pass in a duration for the poll.resultsfield that is unused in theCreateMessagerequest.It seems to be a schema for accessing poll objects in a
Message.I would like for another
PollCreateobject with fields similar to the fields in the poll create request object to be created, and for theCreateMessage::pollto use it. It would be much easier to pass in poll durations with this change. Only current option is to useCreateMessage::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~ 🩷