feat: add guild messages search endpoint#1565
Open
Sim-hu wants to merge 1 commit intobrainboxdotcc:devfrom
Open
feat: add guild messages search endpoint#1565Sim-hu wants to merge 1 commit intobrainboxdotcc:devfrom
Sim-hu wants to merge 1 commit intobrainboxdotcc:devfrom
Conversation
Implement the Search Guild Messages endpoint (GET /guilds/{guild.id}/messages/search)
as described in the Discord API documentation, resolving brainboxdotcc#1563.
Adds message_search_params struct for query parameters, message_search_result struct
for the response, and guild_messages_search method on the cluster with coroutine support.
✅ Deploy Preview for dpp-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
looking good, just one question, is the cluster coro stuff generated automatically by the php script? it has to be done that way not by hand but I can't tell from the pr. |
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
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.
Summary
Implements the Search Guild Messages endpoint (
GET /guilds/{guild.id}/messages/search).message_search_paramsstruct with all query parameters from the API specmessage_search_resultstruct for the response (including nested message arrays)guild_messages_search()and coroutine wrapperco_guild_messages_search()has,sort_by, andsort_orderfilter valuesCloses #1563