-
Notifications
You must be signed in to change notification settings - Fork 188
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
chore: release 4.1.0 #542
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
* 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
… None for intent checking.
* 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>
…th normal and ephemeral
* 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.
…ut privileged intents.
* 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
…, add "name" keycheck.
… 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
Closed
* 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
* Update guild.py * Update guild.pyi
* 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()
Requesting a review from @interactions-py/core again. |
* 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
It may introduce a runtime error however.
EepyElvyra
approved these changes
Feb 24, 2022
FayeDel
approved these changes
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
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 pull request updates our main
stable
branch fromunstable
which reflects all of the changes we wish to bring for v4.1's launch.Checklist
pre-commit
to format and lint the change(s) made.3.8.6
and higher.