Skip to content

Conversation

@OmLanke
Copy link
Contributor

@OmLanke OmLanke commented Mar 3, 2023

Summary

Reverts #1940 and reimplements one time event listeners using @client.listen(once=True).

Breaking change for master branch. The code this pr breaks isn't released as of making this pr, but merged with master branch.

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed).
  • This PR is not a code change (e.g. documentation, README, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.

@OmLanke OmLanke requested a review from a team as a code owner March 3, 2023 20:06
@JustaSqu1d JustaSqu1d added hold: changelog This pull request is missing a changelog entry good first issue Good for newcomers priority: medium Medium Priority status: awaiting review Awaiting review from a maintainer feature Implements a feature python labels Mar 3, 2023
@codecov
Copy link

codecov bot commented Mar 3, 2023

Codecov Report

Merging #1957 (6b90604) into master (ea84758) will increase coverage by 0.01%.
The diff coverage is 14.28%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1957      +/-   ##
==========================================
+ Coverage   33.32%   33.33%   +0.01%     
==========================================
  Files          97       97              
  Lines       18901    18891      -10     
==========================================
- Hits         6298     6297       -1     
+ Misses      12603    12594       -9     
Flag Coverage Δ
macos-latest-3.10 33.31% <14.28%> (+0.01%) ⬆️
macos-latest-3.11 33.31% <14.28%> (+0.01%) ⬆️
macos-latest-3.8 33.32% <14.28%> (+0.01%) ⬆️
macos-latest-3.9 33.32% <14.28%> (+0.01%) ⬆️
ubuntu-latest-3.10 33.31% <14.28%> (+0.01%) ⬆️
ubuntu-latest-3.11 33.31% <14.28%> (+0.01%) ⬆️
ubuntu-latest-3.8 33.32% <14.28%> (+0.01%) ⬆️
ubuntu-latest-3.9 33.32% <14.28%> (+0.01%) ⬆️
windows-latest-3.10 33.31% <14.28%> (+0.01%) ⬆️
windows-latest-3.11 33.31% <14.28%> (+0.01%) ⬆️
windows-latest-3.8 33.32% <14.28%> (+0.01%) ⬆️
windows-latest-3.9 33.32% <14.28%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
discord/client.py 27.40% <14.28%> (+0.34%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea84758...6b90604. Read the comment docs.

@JustaSqu1d JustaSqu1d removed the hold: changelog This pull request is missing a changelog entry label Mar 4, 2023
@Lulalaby Lulalaby changed the title feat: one time event listeners feat!: one time event listeners Mar 4, 2023
OmLanke and others added 2 commits March 5, 2023 01:58
Signed-off-by: Om <92863779+Om1609@users.noreply.github.com>
Lulalaby
Lulalaby previously approved these changes Mar 4, 2023
@Lulalaby Lulalaby enabled auto-merge (squash) March 4, 2023 23:38
@Lulalaby Lulalaby requested a review from BobDotCom March 4, 2023 23:38
VincentRPS
VincentRPS previously approved these changes Mar 17, 2023
Copy link
Contributor

@VincentRPS VincentRPS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

auto-merge was automatically disabled March 25, 2023 07:33

Head branch was pushed to by a user without write access

@OmLanke OmLanke dismissed stale reviews from VincentRPS and Lulalaby via 20a835e March 25, 2023 07:33
@Lulalaby Lulalaby enabled auto-merge (squash) March 25, 2023 07:35
@Lulalaby Lulalaby requested a review from ChickenDevs March 25, 2023 07:35
@Lulalaby Lulalaby merged commit 2e9ab61 into Pycord-Development:master Mar 25, 2023
@OmLanke OmLanke deleted the once-event branch April 24, 2023 17:42
@OmLanke OmLanke mentioned this pull request May 13, 2023
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Implements a feature good first issue Good for newcomers priority: medium Medium Priority status: awaiting review Awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants