feat: Guild Message Search#3160
feat: Guild Message Search#3160NeloBlivion wants to merge 30 commits intoPycord-Development:masterfrom
Conversation
|
Thanks for opening this pull request! This pull request can be checked-out with: git fetch origin pull/3160/head:pr-3160
git checkout pr-3160This pull request can be installed with: pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3160/head |
Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com>
|
iterator seems to function reliably now |
|
For the conditions we could have hijacked python dunders kinda like sqlalchemy but I feel like it would have been a little overkill. |
|
|
||
|
|
||
| class Parsable: | ||
| # idk this kinda sucks lmao |
There was a problem hiding this comment.
gave this a bit more thought, the intent is to have the same syntax as Intents or Permissions where you can easily pass True/False values, but we can't use the existing BaseFlags because they translate to completely different things on the API. I think the implementation itself is fine here, but as for naming how about something like ArrayFlags to convey a similar purpose? Or if we expect this to be limited to search, SearchFilters would be straightforward
| for invite in data | ||
| ] | ||
|
|
||
| def search(self, **params): |
Summary
Implements discord/discord-api-docs#8010
Requires MESSAGE_CONTENT intent and READ_MESSAGE_HISTORY in relevant channels
Pending:
hasandauthor_types, spec allows inversion with-so instead of an enum list i went with a True/False class (e.g.SearchHas(embed=True, link=True, image=False))Information
examples, ...).
Checklist
type: ignorecomments were used, a comment is also left explaining why.