-
Notifications
You must be signed in to change notification settings - Fork 130
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
Add support for polls #534
Merged
Conversation
This file contains 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
Adds the following structures for Discord Polls (under Nostrum.Struct.Message): - `Poll`: The root poll struct, which has utility methods for creating new polls - `Answer`: An option on a poll, this stores the ID and contains the media - `MediaObject`: This is the media type used for storage of both the questions and answers, storing the text and (in the case of answers) the emoji.
Adds the new poll key to the Message structures we have, as well as mentioning that the Api.create_message methods take the new `poll` attribute.
Adds the new gateway intents for receiving dispatch messages about votes being added/removed from polls. Also documents the auto moderator intents that were already present but undocumented.
jchristgit
reviewed
Apr 15, 2024
Co-authored-by: jchristgit <[email protected]>
Co-authored-by: jchristgit <[email protected]>
Co-authored-by: jchristgit <[email protected]>
Co-authored-by: jchristgit <[email protected]>
Co-authored-by: jchristgit <[email protected]>
Co-authored-by: jchristgit <[email protected]>
Co-authored-by: jchristgit <[email protected]>
jchristgit
reviewed
Apr 16, 2024
Upstream PR has merged, once we are happy with this we can merge it in. |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
My fellow developers,
Today, we stand on the cusp of a new frontier in the world of Elixir programming. A frontier where innovation, collaboration, and sheer determination converge to push the boundaries of what we thought possible. It is with great pride and optimism that I address you today to herald the rapid development of Nostrum, an Elixir Discord library, masterfully crafted and tirelessly maintained by the indomitable trio: Joe, Craig, and Johannes.
As we look back on the journey that has brought us to this moment, we see countless hours of dedication, relentless pursuit of excellence, and an unwavering commitment to empowering developers worldwide. Nostrum has become not just a library, but a symbol of ingenuity and progress in the Elixir community.
But today, my friends, we stand on the precipice of something even greater. Today, we unveil a new implementation that will revolutionize the very fabric of Nostrum: the introduction of polls. Yes, you heard it right. Polls, a simple yet powerful tool that will democratize decision-making, foster engagement, and elevate the user experience to unprecedented heights.
With the integration of polls into Nostrum, developers will now have the ability to gather feedback, gauge opinions, and make informed decisions in real-time. Whether it's deciding on the next feature to implement, choosing the direction of a project, or simply gauging community sentiment, polls will be the cornerstone of collaboration within the Nostrum ecosystem.
But let us not forget the significance of this moment. It is not merely the addition of a feature, but a testament to our collective vision and unwavering commitment to pushing the boundaries of what is possible. With polls, we empower every developer to have a voice, to shape the future of Nostrum, and to leave their mark on the ever-evolving landscape of Elixir programming.
So let us embrace this moment with open arms, knowing that together, we have ushered in a new era of innovation and possibility. Let us continue to push the boundaries, defy the odds, and inspire generations to come. For in the world of Elixir development, the sky is not the limit – it is only the beginning.
Thank you.
The Nitty Gritty
Nostrum.Struct.Message.Poll
)Api
module.We should not merge this until the upstream discord/discord-api-docs#6746 merges.