Skip to content

chore: release 4.1.0 #542

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 112 commits into from
Feb 24, 2022
Merged

chore: release 4.1.0 #542

merged 112 commits into from
Feb 24, 2022

Conversation

i0bs
Copy link
Contributor

@i0bs i0bs commented Feb 19, 2022

About

This pull request updates our main stable branch from unstable which reflects all of the changes we wish to bring for v4.1's launch.

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

FayeDel and others added 30 commits January 24, 2022 19:50
* Add user & bot flags to flags.py

* changed some user flag names

* Added flags.py to user.pyi

* added flag properties to user object

* removed unused appflags

* Added flag checking before starting gateway

* added AppFlags

* added appflags

* abstracted flags to application object

* Accounted for LIMITED priv intent flags

* Fix typo

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

Co-authored-by: Damego <danyabatueff@gmail.com>
* refactor methods to use the `MISSING` value

* moved `MISSING` class to other file

* refactored methods in

- channel.py
- channel.pyi

* refactored methods in

- guild.py
- guild.pyi

* refactored methods in

- member.py
- member.pyi

* refactored methods in

- message.py
- message.pyi

* refactored methods in

- role.py
- role.pyi

* requested changes

* fix typehinting

* Update channel.py

* Update channel.pyi

* Update member.py

* Update member.pyi

* Update message.py

* Update message.pyi

* Update channel.pyi

I shouldn't forget to turn off that god damn autocorrect next time...

* Update channel.py

* Update member.py

* Update message.py

* Update message.pyi

* Update member.pyi

* Update channel.pyi

* Eh

Wtf does black want???

* Update member.py

* Update message.py

* refactor
* fix: outdated user agent

* refactor: user agent
* feat: create basic functionality for Extensions
Expands Extension.__new__ and adds new functions to mimic client decorators

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* feat: allow the creation of commands after starting the event loop

* feat: add the ability to unload a cog, and remove the commands when doing so

* chore: remove unused imports for flake8

* style: add in suggestions from #428

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* refactor: move Extension components into the _listeners dict

* feat: add an autocomplete Extension decorator

* feat: add a modal Extension decorator

* feat: add message and user context menu decorators for Extensions

* feat: advanced extension loading

* fix: typehints

* docs: update client.pyi

* fix: Apply suggestions from code review (#428)

Co-authored-by: fl0w <41456914+goverfl0w@users.noreply.github.com>
Co-authored-by: Max Hirtz <maxyolo01.ytb@gmail.com>

* chore: pre-commit

* fix: move to dunder method on extensions

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

* fix: allow extensions to be properly removed.

* perf: end extension loading based on failure.

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

* fix: restore Extension functionality after breaking changes from 4.0.2

* feat: Allow the hot-loading of Extensions

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: fl0w <41456914+goverfl0w@users.noreply.github.com>
Co-authored-by: Max Hirtz <maxyolo01.ytb@gmail.com>
* feat: allow passing a command name in autocomplete deco

* doc: update relevant client stub file

* fix: sync commands on None return

* fix: run sync properly in loop

* fix: wrong coro handling

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix: remove redundant instance check

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

* fix: raise exception on invalid instance

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* typo: docstring

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

* pre-commit:

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: EdVraz <88881326+EdVraz@users.noreply.github.com>
…ke support for autocomplete command arg, fix name arg condition for dispatch.

The latter point fixes an error when a command is executed with `name` as an argument.
* refactor methods to use the `MISSING` value

* moved `MISSING` class to other file

* refactored methods in

- channel.py
- channel.pyi

* refactored methods in

- guild.py
- guild.pyi

* refactored methods in

- member.py
- member.pyi

* refactored methods in

- message.py
- message.pyi

* refactored methods in

- role.py
- role.pyi

* new helper methods:

- channel.purge

* change purge values to `MISSING`

* new helper methods:

- context.get_channel()
- context.get_guild()
- channel.get_message()

* new helper methods:

- create_thread

* new helper methods:

- create_thread

* Some work

* new method:

Message.get_from_url()

* refactor

* added `pytz` to requirements.txt

ran pre-commit to lint changes after correcting the merge-conflict

* Update message.py

Remove leftover testing line

* Update client.py

* remove pytz from requirements

* add returns

* Update message.py

I forgot returns there
… helper methods. (#468)

* fix!: make scheduled events work
* feat: implement Member.id

* feat: use property

* Update member.pyi

* docs: add typehint

* docs: add typehint and docstring
@i0bs i0bs 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 labels Feb 19, 2022
@i0bs i0bs linked an issue Feb 19, 2022 that may be closed by this pull request
@i0bs i0bs requested review from FayeDel and EepyElvyra February 19, 2022 02:24
i0bs and others added 12 commits February 19, 2022 16:36
* refactor: beginning Gateway connection rewrite.

* feat: add `UnavailableGuild` model object.

* refactor: Abstract away from gateway headers, utilise internal events/data to daemonise, correct some attributes.

* feat!: Implement somewhat working reconnection, reinclude dispatching, fix heartbeat packet sending

This still doesn't work properly, it just hangs later than stable.

* refactor: Switch heartbeater bool back to Event obj.

* refactor: correclty parse reconnection logic.

* docs: clarify new gateway structure.

* fix: Fix import typos and reordered import references

* fix: Fix http loop invocation for py 3.10, add _ready to gateway slot.

* fix: Fix event loop object creation on py 3.10

* fix: Fix await runtime error and close code checking.

* refactor: reset heartbeater on death, read from closed/closing states.

* ci: correct from checks.

* refactor: `wait` on the event instead of `sleep` which targets the whole loop

* fix: Switch asyncio loop delay on sending multiple heartbeat sending.

Co-authored-by: DeltaXWizard <33706469+deltaxwizard@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* refactor: extract component building into seperate function

* fix!: fix a recursion error
…ods to make editing of only one field easier (#479)

* channel.modify

* refactor: add `*`

* some guild stuff

* feat: expand guild.modify

* feat: expand guild.modify
…ion is present (#544)

* fix!: prevent exception being raised for non-chat-input commands when no description is present

* fix!: prevent exception being raised for non-chat-input commands when no description is present
* feat(gateway): Client Latency support, introduce ready state, fix headers/docs

* feat: Extend helper method to the client class.

* fix: Add attempt to fix gateway recursion, minor refactor gateway header usage.

* docs: Document new gateway latency attributes and ready state.

Co-authored-by: EdVraz <88881326+EdVraz@users.noreply.github.com>
* fix!: correct kwarg dictionary when dispatching a command

* undo changes in dispatch

* fix!: argument conversion for non-sub-commands

* fix!: sub-command keyerror

* fix!: _client for attributes and sub_command(_group) convertion

* Update headers

* Update gateway.py

* fix!: add _client to slots

* style: rename dunder

Co-authored-by: fl0w <41456914+goverfl0w@users.noreply.github.com>
* docs: improve documentation on extensions
Also it changes the variable and parameter names:
From `dependencies` and `_dependencies` to `packages` and `_packages`.
Also modifies docstrings related to the line above.

* feat: implement optional additional kwargs for setup()
@i0bs
Copy link
Contributor Author

i0bs commented Feb 24, 2022

Requesting a review from @interactions-py/core again.

@i0bs i0bs changed the title chore: launch for 4.1.0 chore: release 4.1.0 Feb 24, 2022
EepyElvyra and others added 5 commits February 24, 2022 10:44
* fix!: make context not required

* fix!: remove requirement of reason in helper methods
* fix: Edit message Embed instantiation serialisation and include proper message return on edit helper method.

* refactor: Refactor embed serialisation from model to helper method.

This is because this is caused via the Helper method.

Co-authored-by: EdVraz <88881326+EdVraz@users.noreply.github.com>
* fix!: make context not required

* fix!: remove requirement of reason in helper methods

* Update gateway.py
@i0bs i0bs merged commit 7d379f4 into stable Feb 24, 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 pending Pending approve priority This Issue/PR must be resolved first before accepting any others
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

[MISC] Release 4.1.0