You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Which package is the feature request for?
discord.js
Feature
Add a
reason: string
parameter forMessage(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.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 forMessage(Manager)#(un)pin
.Alternative solutions or implementations
No response
Other context
Related: #4359
The text was updated successfully, but these errors were encountered: