-
Notifications
You must be signed in to change notification settings - Fork 185
chore: merge unstable into stable #1031
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
Merged
Conversation
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
…ce they do nothing (#1019)
* fix: Change the autocomplete dispatch from ID -> name to allow multi-guild functionality when scope is used * ci: correct from checks. Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat: add helper methods for component disabling * ci: correct from checks. * fix: actually return Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat: turn MISSING into a more proper sentinel * docs(docstring): Update `_Missing`'s docstring
* feat: Add ``presence`` property to ``User`` * ci: correct from checks. * make optional * ref: remove `"` in docstring Co-authored-by: Max <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Max <[email protected]>
* refactor!: Rename outdated channel type names to new * refactor: change types in code Co-authored-by: DeltaX <[email protected]>
* ref!: set GuildMember as a subclass of Member * ci: correct from checks. * revert: add back original functions * ci: correct from checks. * fix: remove other branch git sorcery * ci: correct from checks. * fix: last github fix Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat!: Implement ``AllowedMentions`` object * replace ``MessageInteraction``(what it do here lol) to ``AllowedMentions`` * ref: add to ``__all__`` * ci: pre-commit * typehints * Allow pass dict * ci: correct from checks. Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat: Implement barebones GW ratelimiter, implement resume url usage. This also refactors some attributes to utilise the ratelimiter and more importantly, the heartbeat loop. (It still works the same!) * feat: Refactor variable switching, optimise seq definitions, written primitive restart command. * feat!: Cache websocket url, completely redo WS client process/instantiation and client login process, implement ratelimiter to GW process * docs, chore: Remove unused code/imports/log prints, optimise docs/slots * docs, chore: Remove/refactor unused comments, document and typehint ratelimiter object * docs: Fix misprint on log debug division * feat: Implement a _stop() client function. * fix: Supress error code 4001. * fix: Change to int value conversions for payload, readd afk attribute to ClientPresence object, revert suppress 4001 commit. * docs, refactor: Tweak ratelimit functions to properties, redo ratelimit documentation and usage of logger exceptions * docs: Tweak ratelimit delay description * fix: Fix changing client presence to IDLE without providing activities attribute * refactor!: Rename __task attribute to _task
* refactor: improve the PR template again * refactor: improve the PR template again
* Fix: modify method in client * ci: correct from checks. Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat!: Add a guild id property for the member object * Update interactions/api/models/member.py Co-authored-by: Max <[email protected]> * ci: correct from checks. * ref: use self._extras * ci: correct from checks. * ref: raise an exception when not present * ci: correct from checks. * Update gw.py * Update member.py * feat: ensure a guild_id in _extras whenever possible Co-authored-by: Max <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat!: Add a guild id property for the member object * refactor: optimize project structure * revert: stuff from other branch * refactor: move missing from stub files * fix: resolve new circular imports
* fix: consider self when auto-deffering in extensions * revert: remove unwanted change * refactor: don't check for "self" * add extension typehint
All funds I receive from sponsors for interactions.py will ALWAYS go to interactions.py. All that is being changed is to repoint to the proper URL.
* fix: command options doesn't syncs * ci: correct from checks. * Update interactions/client/bot.py Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix: Handle gateway stream when None is given. * refactor: Change occurrence of heartbeater task recreation (This just mitigates an edgecase of heartbeating when the wsclient is None. * chore: pre-commit ci
* chore: bump version and add catalyst to authors * No one saw this * Update PULL_REQUEST_TEMPLATE.md * Update .github/PULL_REQUEST_TEMPLATE.md Co-authored-by: Damego <[email protected]> * ci: correct from checks. Co-authored-by: Damego <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat: Add helper methods for sticker * fix: add missed return * fix: lmao discord * refactor: add missed client check * ref: optional return Co-authored-by: EdVraz <[email protected]> * docs: optional return Co-authored-by: EdVraz <[email protected]> * docs: improve docstings Co-authored-by: EdVraz <[email protected]> * ci: correct from checks. * feat: add support for `str` type Co-authored-by: EdVraz <[email protected]> * docs: improve docstings Co-authored-by: EdVraz <[email protected]> * ref: remove check for `Snowflake` type Co-authored-by: EdVraz <[email protected]> * ci: correct from checks. * docs: improve docstings Co-authored-by: EdVraz <[email protected]> * ref: remove check for `Snowflake` type Co-authored-by: EdVraz <[email protected]> * ci: correct from checks. * feat: add `str` support Co-authored-by: EdVraz <[email protected]> * ci: correct from checks. * fix: description is optional but not optional? * ci: correct from checks. * ref: use None * refactor: add missed converter * refactor: remove sticker from guild and add some checks * refactor: add `StickerPack` to `__all__` * ci: correct from checks. Co-authored-by: EdVraz <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…#1056) * feat: create `Context.has_permissions()` & `Member.has_permissions()` * ci: correct from checks. * Update interactions/api/models/member.py Co-authored-by: EdVraz <[email protected]> * fix: guild could be unbound Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: EdVraz <[email protected]>
* feat&fix: Implement `Guild.get_scheduled_events` & fix iso * ci: correct from checks. * fix: check for None Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix: small but annoying bug * feat: Add channel history async iterator * docs: change docstring * feat: add `get_channel_history` utility method * fix: add client safeguard * feat: add maximum amount to get * refactor/feat: Create an ABC and update the channel history iterator accordingly * feat/refactor: add checks and move files * docs: fix strings * chore: remove print * fix: add check to channel history iter * fix: add check to channel history iter * feat: make the guild members iterator * fix: type annotation * fix: correct id key * fix: make `maximum` `inf` * fix: math is hard... * feat: Add normal `BaseIterator` * chore: make comment * refactor: change import paths to relative * fix: path * feat: add context managers * feat: add typing context manager * feat: add new attributes and `get_guild_members` utility method * fix: speling (typo intended) * fix: import context managers * Update utils.py * ci: correct from checks. * Update utils.py * Update base_iterators.py * ci: correct from checks. * Update base_iterators.py * Update channel.py * Update guild.py * Update guild.py * ci: correct from checks. * Update channel.py * ci: correct from checks. * Update base_iterators.py * Update base_context_managers.py * ci: correct from checks. * Update base_iterators.py * ci: correct from checks. * Update base_iterators.py * Update channel.py * Update guild.py * Update base_context_managers.py * Update channel.py * Update base_context_managers.py * ci: correct from checks. * Update channel.py * Update base_context_managers.py * Update channel.py * ci: correct from checks. * Update base_context_managers.py * ci: correct from checks. * Update base_context_managers.py * ci: correct from checks. * Update base_context_managers.py * Update base_iterators.py * ci: correct from checks. * Update channel.py * ci: correct from checks. * Update guild.py * Update guild.py * ci: correct from checks. * Update utils.py * ci: correct from checks. * Update base_iterators.py * Update utils.py * ci: correct from checks. Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat: Add `begin_guild_prune` * Update guild.py * Update guild.py * Update guild.py * Remove weird 7 formatting thing * ci: correct from checks. * Add min max counts * Update guild.py * ci: correct from checks. * Add min max to helpers * Fix numbers (sorry ed) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* refactor: Enable repr for all models * ci: correct from checks. * Feat: enable everything into the repr * set channel reprs * ci: correct from checks. * Update emoji.py * Update channel.py * Update member.py * Update guild.py * ci: correct from checks. * Update message.py * Update webhook.py * Update user.py * Update team.py * Update role.py * Update attrs_utils.py * ci: correct from checks. * Update member.py * ci: correct from checks. Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* docs: update FAQ and quickstart documentation links (#1038) * Docs: add back previous changes * docs: fix outdated links in the quickstart (#1037) Co-authored-by: Damego <[email protected]> * fix forcing http add force_arg which takes the pop argument to checking it twice. * ci: correct from checks. Co-authored-by: DeltaX <[email protected]> Co-authored-by: EdVraz <[email protected]> Co-authored-by: Damego <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* refactor: just refactor 1. Moved getting object ID into separated method. 2. Add method to get object ids. Needs for `message_delete_bulk`, `emoji_update` and `stickers_update` 3. Cache `GuildMember` like `Member` 4. Deleting messages from cache on `message_delete_bulk` event * chore: run pre-commit * refactor: merge conditions into one * refactor: add emojis to guild cache in attrs_post_init * fix: typo * refactor: move message cache control to method - Remove message from cache on `message_delete` event * ci: correct from checks. * fix the fix of bug * docs: capitalize return and ` to ' * refactor: leave only `message` * ref: move `__modify_guild_cache` to own method * ci: correct from checks. * docs: add and update docstrings * refactor: properly caching members and roles * ci: correct from checks. * refactor: refuse from raw remove events and ... put `obj` to `__modify_guild_cache` if guild_obj is None * ci: correct from checks. * fix: `guild_obj` referenced before assignment * fix: help me There are only two models which can be converted to model without `Guild` prefix. * refactor: use walrus operator Co-authored-by: EdVraz <[email protected]> * fix: add missed obj to dispatch * refactor: remove extra dispatch * refactor: message already removed from cache? * refactor: remove `__delete_message_cache` * refactor: dispatch `guild_emojis_update` without `raw` * ci: correct from checks. * refactor: change condition for `ids` * refactor: change condition in getting ids * feat: add support for `_execution` events * refactor: dispatch update event if there are no id & ids * revert: add support for `_execution` event * refactor: some stuff * refactor: use `cache.merge` to resolve guild overloading Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: EdVraz <[email protected]>
Contributor
Author
|
Marking this as ready now |
* fix: Added zlib + compression, disabled msg size limit * fix: Removed `$` on identify call for future-proofing.
* fix get list when forced * Update interactions/utils/get.py Co-authored-by: EdVraz <[email protected]> * Update interactions/utils/get.py Co-authored-by: EdVraz <[email protected]> * Update interactions/utils/get.py Co-authored-by: EdVraz <[email protected]> Co-authored-by: EdVraz <[email protected]>
* docs: Fix description in ``set_rate_limit_per_user`` * feat: Adding ``premium_progress_bar_enabled`` for ``Guild`` * feat: Adding ``communication_disabled_until`` in GuildMember Gateway dispatch * ci: correct from checks. * fix: Fix `mention` being NoneType * chore: Update interactions/api/models/member.py By Toricane's suggestion. Co-authored-by: Toricane <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Toricane <[email protected]>
* refactor: make Command.dispatch a function * docs(docstrings): update the docstring for Command.dispatcher * docs(docstrings): fix the docstring for `command.dispatcher` Co-authored-by: Catalyst4 <[email protected]>
* fix: fix gateway resumes * fix: remove errant quotation * feat: add compression type delta asked me to add this
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
breaking
This contains breaking changes
bug
Something isn't working
documentation
Improvements or additions to documentation
enhancement
New feature or request
on hold
This issue/PR is on hold pending higher priority issues/PRs
pending
Pending approve
priority
This Issue/PR must be resolved first before accepting any others
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.
About
This PR merges unstable into stable for a new pre release.
Checklist
pre-committo format and lint the change(s) made.3.8.6and higher.