Skip to content

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 added status: awaiting review Awaiting review from a maintainer python hold: changelog This pull request is missing a changelog entry labels 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
@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 hold: changelog This pull request is missing a changelog entry labels Mar 7, 2023
@plun1331 plun1331 requested a review from a team March 8, 2023 17:43
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