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

Support audit log reasons for pinning and unpinning messages #7519

Closed
cherryblossom000 opened this issue Feb 20, 2022 · 0 comments · Fixed by #7520
Closed

Support audit log reasons for pinning and unpinning messages #7519

cherryblossom000 opened this issue Feb 20, 2022 · 0 comments · Fixed by #7520

Comments

@cherryblossom000
Copy link
Contributor

cherryblossom000 commented Feb 20, 2022

Which package is the feature request for?

discord.js

Feature

Add a reason: string parameter for Message(Manager)#(un)pin. #4869 removed support for including an audit log reason when pinning and unpinning messages, citing that it isn’t supported, but from my testing it is.

screenshot of pinning message audit log entry with reason

X-Audit-Log-Reason is supported for pinning messages and the reason appears in the client. For unpinning messages, the reason doesn’t appear in the client but is returned by the API in /guilds/{guild.id}/audit-logs.

Ideal solution or implementation

Add a reason: string parameter for Message(Manager)#(un)pin.

Alternative solutions or implementations

No response

Other context

Related: #4359

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants