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

Add audit log reason to channel deletion #2058

Merged

Conversation

lukasthaler
Copy link
Contributor

@lukasthaler lukasthaler commented Sep 24, 2024

Summary

This PR adds the optional reason argument for the audit log to hikari.api.rest.RESTClient.delete_channel and hikari.impl.rest.RESTClientImpl.delete_channel, the same way it already exists for e.g. edit_channel

Checklist

  • I have run nox and all the pipelines have passed.
  • I have made unittests according to the code I have added/modified/deleted.

Related issues

n/a, I brought this up on Discord earlier today and proceeded to fix it, as I was told it was likely an oversight

@lukasthaler
Copy link
Contributor Author

Added the changelog fragment, but unsure what to do about the failing tests on unix and macOS - can't reproduce these on my Windows machine, and from what I can tell based on the reported error, the failure has nothing to do with my code changes

@davfsa
Copy link
Member

davfsa commented Sep 25, 2024

Hey!

Thanks for the pull request!

The test failures are completely unrelated to this PR. They seem to arise from a change downstream in aiohttp. I will fix them shortly and then get this merged!

@davfsa davfsa added the enhancement New feature or request label Sep 25, 2024
@davfsa davfsa enabled auto-merge (squash) September 25, 2024 10:47
@davfsa davfsa merged commit 0e021b2 into hikari-py:master Sep 25, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants