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

fix: pass reason to the correct method in AutoModRule #1960

Merged
merged 7 commits into from
Mar 9, 2023

Conversation

OmLanke
Copy link
Contributor

@OmLanke OmLanke commented Mar 6, 2023

Summary

AutoModRule does not accept a reason parameter. This raises an unexpected keyword argument error.
This PR fixes it.

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.

Signed-off-by: Om <92863779+Om1609@users.noreply.github.com>
@OmLanke OmLanke requested a review from a team as a code owner March 6, 2023 15:55
@OmLanke OmLanke changed the title Remove reason from being passed to AutoModRule fix: remove reason from being passed to AutoModRule Mar 6, 2023
@JustaSqu1d JustaSqu1d assigned Lulalaby and unassigned Lulalaby Mar 6, 2023
@JustaSqu1d JustaSqu1d requested a review from Lulalaby March 6, 2023 16:30
discord/guild.py Outdated Show resolved Hide resolved
@plun1331
Copy link
Member

plun1331 commented Mar 6, 2023

Please make a changelog entry as well

OmLanke and others added 3 commits March 7, 2023 00:29
Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com>
Signed-off-by: Om <92863779+Om1609@users.noreply.github.com>
Signed-off-by: Om <92863779+Om1609@users.noreply.github.com>
@OmLanke OmLanke requested review from plun1331 and removed request for Lulalaby March 7, 2023 05:04
@plun1331 plun1331 changed the title fix: remove reason from being passed to AutoModRule fix: pass reason to the correct method in AutoModRule Mar 7, 2023
plun1331
plun1331 previously approved these changes Mar 7, 2023
@plun1331 plun1331 enabled auto-merge (squash) March 7, 2023 14:23
@codecov
Copy link

codecov bot commented Mar 7, 2023

Codecov Report

Merging #1960 (9954a3e) into master (e787326) will not change coverage.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1960   +/-   ##
=======================================
  Coverage   33.32%   33.32%           
=======================================
  Files          97       97           
  Lines       18901    18901           
=======================================
  Hits         6298     6298           
  Misses      12603    12603           
Flag Coverage Δ
macos-latest-3.10 33.30% <0.00%> (ø)
macos-latest-3.11 33.30% <0.00%> (ø)
macos-latest-3.8 33.31% <0.00%> (ø)
macos-latest-3.9 33.31% <0.00%> (ø)
ubuntu-latest-3.10 33.30% <0.00%> (ø)
ubuntu-latest-3.11 33.30% <0.00%> (ø)
ubuntu-latest-3.8 33.31% <0.00%> (ø)
ubuntu-latest-3.9 33.31% <0.00%> (ø)
windows-latest-3.10 33.30% <0.00%> (ø)
windows-latest-3.11 33.30% <0.00%> (ø)
windows-latest-3.8 33.31% <0.00%> (ø)
windows-latest-3.9 33.31% <0.00%> (ø)

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

Impacted Files Coverage Δ
discord/guild.py 23.77% <0.00%> (ø)

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 e787326...9954a3e. Read the comment docs.

@plun1331 plun1331 added bug Something isn't working and removed changelog needed labels Mar 7, 2023
@plun1331 plun1331 requested a review from a team March 8, 2023 17:43
CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
@BobDotCom BobDotCom requested a review from plun1331 March 9, 2023 16:49
@plun1331 plun1331 merged commit 010116d into Pycord-Development:master Mar 9, 2023
@OmLanke OmLanke deleted the Om1609-patch-1 branch March 12, 2023 14:04
BobDotCom added a commit that referenced this pull request Mar 20, 2023
* Remove `reason` from being passed to AutoModRule

Signed-off-by: Om <92863779+Om1609@users.noreply.github.com>

* Update discord/guild.py

Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com>
Signed-off-by: Om <92863779+Om1609@users.noreply.github.com>

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

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

* Update CHANGELOG.md

Signed-off-by: Om <92863779+Om1609@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>

---------

Signed-off-by: Om <92863779+Om1609@users.noreply.github.com>
Signed-off-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status: awaiting review Awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants