what is entitlementCreate event & how to add the reason field for audit logs in audit logs.

- First question is self explanatory & second one relates to how add the little thing "with reason" to audit logs as this has been a thing for a while but still didn't figure out how to do this.
4 Replies
d.js toolkit
d.js toolkit•3mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - ✅ Marked as resolved by OP
d.js docs
d.js docs•3mo ago
:discord: Gateway Events - Receive Events > Entitlements Sent when an entitlement is created. The inner payload is an entitlement object. read more
Mark
Mark•3mo ago
If the endpoint supports a reason for audit logs (bans, etc) then the d.js method will have an optional parameter for you to include when using it, and it will set the audit log reason to that value
Shrewd 💫
Shrewd 💫OP•3mo ago
Okay thanks
Want results from more Discord servers?
Add your server