Skip to content

Conversation

@EepyElvyra
Copy link
Contributor

@EepyElvyra EepyElvyra commented Aug 21, 2022

About

This PR merges unstable into stable for a new pre release.

Checklist

  • I've ran pre-commit to format and lint the change(s) made.
  • I've checked to make sure the change(s) work on 3.8.6 and higher.
  • This fixes/solves an Issue (If existent):
    • resolves that we really needed a new pr template
  • I've made this pull request for/as: (check all that apply)
    • Documentation
    • Breaking change
    • New feature/enhancement
    • Bugfix

mAxYoLo01 and others added 15 commits August 11, 2022 17:19
* 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
@EepyElvyra EepyElvyra added breaking This contains breaking changes bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request pending Pending approve on hold This issue/PR is on hold pending higher priority issues/PRs priority This Issue/PR must be resolved first before accepting any others labels Aug 21, 2022
Damego and others added 8 commits August 22, 2022 16:27
* 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: Set the websocket's token without referencing the httpclient

* fix: correct the websocket's headers

* ci: correct from checks.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
FayeDel and others added 14 commits September 1, 2022 15:04
* 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]>
@EepyElvyra EepyElvyra marked this pull request as ready for review September 3, 2022 14:02
@EepyElvyra
Copy link
Contributor Author

Marking this as ready now

FayeDel and others added 6 commits September 4, 2022 00:07
* 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
* fix: Added zlib + compression, disabled msg size limit

* fix: Removed `$` on identify call for future-proofing.

* fix: Add zlib-stream compression in accordance with #1071
@FayeDel FayeDel merged commit 348def8 into stable Sep 4, 2022
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.