-
-
Notifications
You must be signed in to change notification settings - Fork 100
Implement Polls #1922
New issue
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
Closed
Closed
Implement Polls #1922
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
1ed6fcf
Initial commit on implementing polls
PythonTryHard 2c53e90
Towncrier chore
PythonTryHard 89088f1
New poll endpoints
PythonTryHard 2888d76
Ensure route naming consistency
PythonTryHard f31effb
Basic implementation of poll-related classes
PythonTryHard 36e5963
I forgor to format my code
PythonTryHard b7979c4
Poll-specific events
PythonTryHard a32ac57
Only import hikari.Emoji on type checking
PythonTryHard 153fab3
Remove erroneous `__slots__` from PollResult
PythonTryHard 3daae57
Integrate poll classes and events into hikari
PythonTryHard aaab4c4
Implement poll in EntityFactory and REST
PythonTryHard 4be409f
Update typing stub
PythonTryHard 8d3220b
Apparently `Emoji` needs to be imported
PythonTryHard a330fcd
added `_serialize_poll_media()`
mplatypus ff5413e
Removal of counter
mplatypus 64d7b33
Merge pull request #1 from MPlatypus/fix/polls
PythonTryHard f7f58b7
Credit's where credit's due
PythonTryHard a5dbfe7
Throw error on adding answer with existing ID
PythonTryHard a6ba51e
Apparently we don't need to set _answer to None
PythonTryHard ea9de9e
Docstring, dammit
PythonTryHard a7fa5a6
Apply suggestions from code review
PythonTryHard e7768d3
`Emoji` is now `emojis.Emoji`
PythonTryHard 65c333f
`PollObject` is now `Poll`
PythonTryHard 6102e92
Correct `duration` key in `serialize_poll`
PythonTryHard 2347199
Finalize a7fa5a6b on de-underscoring and `.get()`
PythonTryHard b2730be
Change event name for consistency
PythonTryHard 0d2de42
I forgor to update `__all__`
PythonTryHard b5bc835
Dav please
PythonTryHard cfb4446
Use UNDEFINED for nullable guild in poll events
PythonTryHard 9fc84a9
Nox
PythonTryHard e6d642f
Implement poll events in EventFactory
PythonTryHard 7fe8a12
Correct fallback value for guild_id.
PythonTryHard 405458d
`PollCreate` is now `PollBuilder`
PythonTryHard 313d673
....shit
PythonTryHard fd21d87
fixed naming of poll events in event manager
mplatypus 6a4c892
added poll vote add/remove intents
mplatypus 6f0b79f
forgor nox
mplatypus bf34490
added extra intents.
mplatypus 543d20c
Fixed PollCreate to PollBuilder
mplatypus 917e35e
fixed emojis, and answer handling.
mplatypus 515325e
Fixed naming
mplatypus 1517482
fixed naming and docs
mplatypus d6fbf67
Migrate remnant `PollCreate`
PythonTryHard e911c06
Inline the two `_deserialize`
PythonTryHard 629a1bb
Inline _serialize_poll_partial_emoji
PythonTryHard c846391
Merge pull request #4 from mplatypus/polls
PythonTryHard 9e8a50c
Minor improvement to docstrings
PythonTryHard 1e05101
What the hell Platy?
PythonTryHard 001e2e2
Add missing `poll_events` import
PythonTryHard aaed77e
added poll endpoints
mplatypus 46a425c
ruff formatting + changed to sequence
mplatypus 38dd771
Nox format
PythonTryHard 1dc17f4
Resolve typing conflict of `_answer` field
PythonTryHard 13ef0cd
added some more tests.
mplatypus 9d8cb17
Rework Poll events
PythonTryHard 064baed
fixed failing tests.
mplatypus 43fee96
Merge pull request #5 from mplatypus/polls
PythonTryHard bc65d79
Merge remote-tracking branch 'fork/master' into polls
PythonTryHard add6bf5
Appease flake8
PythonTryHard fbe5d1a
Appease mypy
PythonTryHard 700521e
Correct docstring after renaming
PythonTryHard 250cb47
Edit message endpoint doesn't support polls
PythonTryHard bfd338e
Improve names and docstrings
PythonTryHard 385e62d
finished most tests.
mplatypus db85774
Merge pull request #6 from mplatypus/polls
PythonTryHard 1f6db34
Merge remote-tracking branch 'fork/master' into polls
PythonTryHard 51fe4e4
Correct edit_message tests
PythonTryHard eb41493
Correct poll answer payload extraction
PythonTryHard 25ce6f2
Correct event name in test
PythonTryHard afeeebf
...missed some
PythonTryHard 3440a15
Fix test_fetch_poll_voter occasionally not working
PythonTryHard 9b33958
added missing tests.
mplatypus 46d9cbc
Added tests for polls
mplatypus 69c0e6c
Merge pull request #7 from mplatypus/polls
PythonTryHard 9f0e4c8
Remove leftover inlined method
PythonTryHard ff06143
Update copyright holder
PythonTryHard 466af5b
Fix failing poll tests
PythonTryHard f2131f6
I guess this is fine
PythonTryHard a751cc4
I did a dumb
PythonTryHard 2011519
Merge remote-tracking branch 'origin/master' into polls
PythonTryHard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add support for built-in polls | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.