-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
unconfirmed bugA bug report that needs triagingA bug report that needs triaging
Description
Summary
I can't get an answer when I end a poll manually
Reproduction Steps
I don't want the poll to last for hours, so I end it earlier
It works well when I end the poll, and it shows the answer in channel
But even if it has a victor answer, the victor_answer is still None
I've tried:
- wait for a while after ending the poll, still not working
- try to wait until
poll.is_finalized()but ended up in forever waiting - try
bot.wait_for()and wait until `message.type == discord.MessageType.poll_result)
None of these works
Minimal Reproducible Code
await channel.send(poll=poll) #This is a channel
asyncio.sleep(60)
final_poll = await poll.end()
answer = final_poll.victor_answer
print(answer.text)Expected Results
It should return a poll with victor_answer instead of victor_answer being None
Actual Results
It returned a poll with not attribute victor_answer, so trying to print the text will go wrong
Intents
discord.Intents.all()
System Information
- Python v3.12.7-final
- discord.py v2.5.2-final
- aiohttp v3.11.14
- system info: Darwin 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8122
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
unconfirmed bugA bug report that needs triagingA bug report that needs triaging