Skip to content

chore: Merge unstable into stable #923

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
merged 143 commits into from
Jul 14, 2022
Merged

chore: Merge unstable into stable #923

merged 143 commits into from
Jul 14, 2022

Conversation

EepyElvyra
Copy link
Contributor

@EepyElvyra EepyElvyra commented Jul 14, 2022

About

This pull request merges unstable to stable for the next beta release.
This is more stable than 4.3.0-beta.1 enough for it to be warranted to be pushed into the stable branch.

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):
  • I've made this pull request for/as: (check all that apply)
    • Documentation
    • Breaking change
    • New feature/enhancement
    • Bugfix

EepyElvyra and others added 30 commits May 14, 2022 14:16
* feat: add `@func.autocomplete`

* Update interactions/client/bot.pyi

Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>

Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>
…s icon (#783)

* feat: Adding ``icon_url`` property for getting the guild's icon URL

* feat: Adding ``url`` property for ``Emoji`` for getting the emoji's URL

* ci: correct from checks.

* file: Update interactions/api/models/message.py

Co-authored-by: Max <maxyolo01.ytb@gmail.com>

* file: Update interactions/api/models/message.pyi

Co-authored-by: Max <maxyolo01.ytb@gmail.com>

* file: Update interactions/api/models/message.py

Co-authored-by: Max <maxyolo01.ytb@gmail.com>

* file: Update ./api/models/message.py to meet the review

* file: Update interactions/api/models/message.py

Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Max <maxyolo01.ytb@gmail.com>
Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>
* feat: ability to suppress embeds on message edit

* Update interactions/api/models/message.py

Co-authored-by: EdVraz <88881326+EdVraz@users.noreply.github.com>

* Update interactions/api/models/message.py

Co-authored-by: EdVraz <88881326+EdVraz@users.noreply.github.com>

Co-authored-by: EdVraz <88881326+EdVraz@users.noreply.github.com>
This is breaking, very much so
Any bugs encountered during a minor test were fixed, however, more testing is needed
This is an executive decision made between Delta and I. We will be forcing a version 4.0 push onto our old branch to help transition old users using v3 to our new project. This does not necessarily mean this branch will now be receiving updates along with the rest. The goal is to make our current branch used as much as possible.
…xtensions (#797)

* refactor: Add ``remove_commands`` argument for un- and reloading of extensions

* ci: correct from checks.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add the things

* ci: correct from checks.

* Fix return in docstrings

* Remove redundancy

* ci: correct from checks.

* Update interactions/api/models/guild.py

Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>

* Update interactions/api/models/guild.py

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>
* feat: Implement Scheduled Events via Gateway.

* docs: Document attributes to GuildScheduledEventUser object.
* feat: implement webhook model

* feat: implement webhook methods for guild and channel

* refactor(http): Add file sending for webhooks and correct function attributes

* ci: check

* feat: implement execute function

* ci: check

* docs: document webhook class

* Fix: resolve circular import

* Update webhook.py

* ci: correct from checks.

* Update webhook.py

* ci: correct from checks.

* Update webhook.py

* ci: correct from checks.

* Update webhook.py

* ci: correct from checks.

* Update webhook.py

* ci: correct from checks.

* Update webhook.py

* Update api.models.rst

* Create api.models.webhook.rst

* Update webhook.py

* ci: correct from checks.

* Spelling™

* Update interactions/api/models/webhook.py

Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>

* feat: add delete method

* feat: add delete method

* Update interactions/api/models/webhook.py

Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>

* Update interactions/api/models/guild.py

Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>

* Update interactions/api/models/channel.py

Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>

* fix bugs

* Update interactions/api/models/webhook.py

Co-authored-by: Damego <danyabatueff@gmail.com>

* doc

* Update interactions/api/models/webhook.py

Co-authored-by: Damego <danyabatueff@gmail.com>

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>
Co-authored-by: Damego <danyabatueff@gmail.com>
Catalyst4222 and others added 15 commits July 10, 2022 21:11
…ate events

Merge pull request #909 from Catalyst4222/unstable
* fix: properly typehint Storage.get

* fix: fix Storage.pop's typehints
* feat: add info from guilds to cache

* fix: transform Threads into Channels as needed

* fix: you know what? let's just not.

Threads may be updated when Channels aren't and vice versa.
I'd rather not confuse things here.
* feat: new Command object
There are still countless TODOs, this is a progress commit

* fix: import error

* feat: option decorator
btw i havent tested any of these

* fix: attempt to fix circular import

* fix: circular import

* refactor: replace errors with LibraryException

* refactor: few small refactors

* refactor: test

* feat: implement Command obj in decorators
I still haven't tested these btw

* feat: working subcommand system
Have not made it work in extensions yet

* feat: more customizable subcommand system

* feat: working Command system in Extensions

* refactor: add a TODO

* refactor: tidy up the code, improve coro calling

* refactor: rename Command.base to Command.name

* feat: better group behavior

* refactor: replace a few more base= with name=, tidy up code

* refactor: remove client field from Command and properly teardown commands

* refactor: different method of looping

* feat: implement default_scope functionality

* refactor: remove options param from Command.group()

* refactor: make autocomplete work, change typehints, make user and message command rely on command, properly sync Command objects inside Extensions

* feat: implement autodefer and spread_to_rows
These are put in a new utils.py file

* fix: commands and autocomplete with self not passed when inside Extensions

* style: add typehints

* refactor: tweak default scope setting

* docs: some docstrings filled in

* docs: more docstrings, organization of code

* refactor: move resolving commands outside of __sync

* refactor: change __all__ from list to tuple

* fix: subcommands error with variables

* fix: incorrect error

* docs: utils.py docstrings

* feat: new way of creating an ActionRow (pun intended)

* refactor: make option decorator better

* refactor: change Command.self to Command.extension

* docs: fix incorrect typehint

* docs: modify docstring

* docs: new docs page

* docs: add doc file

* docs: move line

* docs: modify docstring of spread_to_rows

* refactor: rename variables

* feat: implement Command.error decorator

* fix: typehint

* docs: attempt to fix parameters of Client docstring

* ci: correct from checks.

* docs: fix docstring

* style: delete a blank line

* docs: update quickstart

* ci: correct from checks.

* docs: modify quickstart

* docs: document new features

* docs: testing

* docs: testing

* docs: make it look good

* docs: fix formatting

* docs: add migration docs

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* docs: Fix description in ``set_rate_limit_per_user``

* feat: Adding ``premium_progress_bar_enabled`` for ``Guild``
* fix: unfuck the branch

* feat: Add single-arg cache

* feat: more work on get

* Update get.pyi

* ci: correct from checks.

* Update get.py

* ci: correct from checks.

* Update get.py

* Update get.py

* ci: correct from checks.

* Update get.py

* Update get.py

* ci: correct from checks.

* Update get.py

* Update get.py

* feat: more work on get

* feat: more work on get

* feat: more work on get

* feat: more work on get

* Update get.py

* Update get.py

* ci: correct from checks.

* Update get.py

* Update get.py

* ci: correct from checks.

* Update get.py

* feat: more work on get

* docs: work on docs for get

* Update get.py

* Update get.pyi

* Update get.py

* ci: correct from checks.

* Update get.pyi

* ci: correct from checks.

* Update get.py

* feat: Allow `list[obj]`

* Update docs/get.rst

Co-authored-by: Sofia <41456914+ffl0w@users.noreply.github.com>

* Update interactions/client/get.py

Co-authored-by: Sofia <41456914+ffl0w@users.noreply.github.com>

* fix: Fix `TpyeVar`s

* fix:

* fix: allow py3.9 typehints

* fix: fix cache attribute and instance checks

* Update interactions/client/get.py

Co-authored-by: Max <maxyolo01.ytb@gmail.com>

* Update interactions/client/get.py

Co-authored-by: Max <maxyolo01.ytb@gmail.com>

* refactor: Optimize `_search_iterable`

* refactor: Optimize `_search_iterable`and use a list of tuples instead of a tuple of tuples

* Update migration.rst

* Update migration.rst

* Update migration.rst

* Update migration.rst

* Update migration.rst

* Update migration.rst

* Update migration.rst

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sofia <41456914+ffl0w@users.noreply.github.com>
Co-authored-by: Max <maxyolo01.ytb@gmail.com>
)

* refactor: extract `search_iterable` out from `get` and optimize it

* refactor: clean up `get`'s parameter and docstring

* docs(typestub): remove `_search_iterable` from `get.pyi`
…nt data gets overwritten (#913)

* refactor: add merge method for cache

* refactor: Optimize `_search_iterable`and use a list of tuples instead of a tuple of tuples

* refactor: Do a guild updates in events

* refactor: Add caching to several HTTP methods

* Update interactions/api/http/guild.py

Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>

* Update interactions/api/http/channel.py

Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>

Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>
* fix: Fix order in `getattr` calls of get

* fix: Attempt to fix issue with item assignment

* fix: Attempt to fix issues cache

* ci: correct from checks.

* fix: Attempt to fix issues cache

* fix: Attempt to fix issues cache

* fix: Attempt to fix issues cache

* fix: Attempt to fix issues cache

* fix: Attempt to fix issues cache

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@EepyElvyra EepyElvyra added documentation Improvements or additions to documentation enhancement New feature or request pending Pending approve breaking This contains breaking changes priority This Issue/PR must be resolved first before accepting any others on hold This issue/PR is on hold pending higher priority issues/PRs labels Jul 14, 2022
@EepyElvyra EepyElvyra requested a review from a team July 14, 2022 19:46
@EepyElvyra EepyElvyra marked this pull request as ready for review July 14, 2022 19:49
@FayeDel FayeDel marked this pull request as draft July 14, 2022 19:54
@EepyElvyra EepyElvyra marked this pull request as ready for review July 14, 2022 19:55
@EepyElvyra EepyElvyra marked this pull request as draft July 14, 2022 19:55
@FayeDel FayeDel marked this pull request as ready for review July 14, 2022 20:21
@FayeDel FayeDel merged commit 6050fac into stable Jul 14, 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 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.