We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The core library
I would like that they can create a survey directly through the module and not through the api (I didn't test from the api)
https://discord.com/api/v9/channels/ChannelId/polls/MessageId/answers/@me - PUT https://discord.com/api/v9/channels/ChannelId/messages - POST
https://discord.com/api/v9/channels/ChannelId/polls/MessageId/answers/@me
https://discord.com/api/v9/channels/ChannelId/messages
{ "mobile_network_type": "unknown", "content": "", "nonce": "1231317440764313600", "tts": false, "flags": 0, "poll": { "question": { "text": "my question" }, "answers": [ { "poll_media": { "text": "my first answer" } }, { "poll_media": { "text": "my second answer" } } ], "allow_multiselect": false, "duration": 24, "layout_type": 1 } }
maybe create a function like <Channel>.createPoll(question: String, answers: Array[]: String, time: Number, multiSelect: Boolean)
<Channel>.createPoll(question: String, answers: Array[]: String, time: Number, multiSelect: Boolean)
question: Required answers: Required time: Optional (1000 * 60 * 60 * 24 by default) multiSelect: Optional (false/true by default)
question: Required
answers: Required
time: Optional (1000 * 60 * 60 * 24 by default)
multiSelect: Optional (false/true by default)
{ "answer_ids": [ "1" // answer_id ] }
This can be like <Message>.sendAnswer(answerId: String/Array idk) deleting the answer is []
<Message>.sendAnswer(answerId: String/Array idk)
The text was updated successfully, but these errors were encountered:
#1147 yeah I tried implementing this already but got this error
Sorry, something went wrong.
yea i have the same error
No branches or pull requests
Which package is the feature request for?
The core library
Feature
I would like that they can create a survey directly through the module and not through the api (I didn't test from the api)
Ideal solution or implementation
https://discord.com/api/v9/channels/ChannelId/polls/MessageId/answers/@me
- PUThttps://discord.com/api/v9/channels/ChannelId/messages
- POSTCreating a poll
Alternative solutions or implementations
maybe create a function like
<Channel>.createPoll(question: String, answers: Array[]: String, time: Number, multiSelect: Boolean)
question: Required
answers: Required
time: Optional (1000 * 60 * 60 * 24 by default)
multiSelect: Optional (false/true by default)
Send a Poll Answer
This can be like
<Message>.sendAnswer(answerId: String/Array idk)
deleting the answer is []
The text was updated successfully, but these errors were encountered: