Skip to content
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

V5.1.0 #1341

Merged
merged 29 commits into from
Apr 22, 2023
Merged

V5.1.0 #1341

merged 29 commits into from
Apr 22, 2023

Conversation

LordOfPolls
Copy link
Contributor

@LordOfPolls LordOfPolls commented Apr 12, 2023

Pull Request Type

  • Feature addition
  • Bugfix
  • Documentation update
  • Code refactor
  • Tests improvement
  • CI/CD pipeline enhancement
  • Other: [Replace with a description]

Description

Resolves minor issues and adds new features to the library

Blocked by

Changes

Related Issues

Test Scenarios

Python Compatibility

  • I've ensured my code works on Python 3.10.x
  • I've ensured my code works on Python 3.11.x

Checklist

  • I've run the pre-commit code linter over all edited files
  • I've tested my changes on supported Python versions
  • I've added tests for my code, if applicable
  • I've updated / added documentation, where applicable

LordOfPolls and others added 10 commits April 11, 2023 05:24
* feat: support regex component callbacks

* docs: document regex matching component callback

* ci: correct from checks.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* chore: switch to MIT license

* ci: correct from checks.

* docs: update license through github 

Uses githubs own license tools so the correct license is detected

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat: add audit new mod events to audit log enum

* feat: add onboarding related events

see discord/discord-api-docs#6041
* feat: add missing message types

* feat: add deletable message types helper
@codecov-commenter
Copy link

codecov-commenter commented Apr 12, 2023

Codecov Report

Patch coverage: 26.89% and project coverage change: -0.28 ⚠️

Comparison is base (c4e5e5d) 47.74% compared to head (a8f5a7f) 47.46%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##           stable    #1341      +/-   ##
==========================================
- Coverage   47.74%   47.46%   -0.28%     
==========================================
  Files         139      139              
  Lines       14284    14477     +193     
==========================================
+ Hits         6820     6872      +52     
- Misses       7464     7605     +141     
Impacted Files Coverage Δ
interactions/api/http/http_requests/channels.py 36.06% <0.00%> (ø)
interactions/api/http/http_requests/emojis.py 55.00% <0.00%> (ø)
interactions/api/http/http_requests/guild.py 30.63% <0.00%> (ø)
...nteractions/api/http/http_requests/interactions.py 41.30% <0.00%> (ø)
interactions/api/http/http_requests/members.py 43.58% <0.00%> (ø)
interactions/api/http/http_requests/messages.py 51.85% <0.00%> (ø)
interactions/api/http/http_requests/reactions.py 70.00% <0.00%> (ø)
...actions/api/http/http_requests/scheduled_events.py 65.00% <0.00%> (ø)
interactions/api/http/http_requests/stickers.py 66.66% <0.00%> (ø)
interactions/api/http/http_requests/threads.py 40.38% <0.00%> (ø)
... and 24 more

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@LordOfPolls LordOfPolls added the pending Pending approve label Apr 12, 2023
LordOfPolls and others added 12 commits April 13, 2023 09:21
* refactor: improve readability of sync logic

* fix: improve initial sync caching

* docs: add docstring to update_command_cache

* feat: add command deletion to debug ext
* fix: refactor all http routes to generate buckets properly

* fix: resolve routes regex missed

* feat: allow concurrent api calls from the same bucket

* feat: restore bucketLock.locked property

* feat: further bucketlock improvements

* feat: allow bucketlock blocking to be toggled
* docs: adjust and fix many parts of the docs

* docs: add note about event object for v4 migration

* docs: replace more instances of InteractionContext

---------

Co-authored-by: Astrea49 <25420078+Astrea49@users.noreply.github.com>
* feat: add support for force fetching

* feat: track if a user object has been fetched

* feat: add force flag to client helper methods

* feat: update all cache fetch methods to have  a force param
@LordOfPolls LordOfPolls linked an issue Apr 20, 2023 that may be closed by this pull request
4 tasks
chronosirius and others added 2 commits April 20, 2023 10:19
* made get_cooldown_with_key async for consistency, added reset_with_key and get_cooldown_time_with_key

* ci: correct from checks.

* fixed pre-commit problems

* comment on #1345, resolved

* made Cooldown.reset_all async #1345

* bot.load => bot.load_extension

* reverted 8217f4e

* made get_cooldown_time_with_key and reset_with_key sync

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@LordOfPolls LordOfPolls merged commit 758d80c into stable Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending Pending approve
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AuditLogEventType 144/145 missing
6 participants