Send a poll after deferral. #10367
Replies: 1 comment
-
You answered your own question already. Polls can’t be edited (in) so they need to be sent in the initial message. deferReply sends an initial message. So you‘d either need to deferReply ephemerally and editReply that with success or whatnot, then send a followUp containing the poll. Or simply send the poll and save to db asynchronously instead of waiting for the db call to succeed. Or store to db and editReply with a button that will then send the stored poll when clicked. Polls not being able to be edited in is a Discord API limitation and we can’t do anything about it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm wondering why content is required and why the poll will not send if we have deferred the reply. (Code is an example)
If users are saving questions and answers to database, they may want to await it and defer to save to db before sending or editing the poll.
I'm guessing the reason is a Poll is not able to be edited after it sent. Is that correct?
0 votes ·
Beta Was this translation helpful? Give feedback.
All reactions