JDA
JDA copied to clipboard
Add support for enforce_nonce
Pull Request Etiquette
- [x] I have checked the PRs for upcoming features/bug fixes.
- [x] I have read the contributing guidelines.
Changes
- [x] Internal code
- [x] Library interface (affecting end-user code)
- [ ] Documentation
- [ ] Other: _____
Closes Issue: NaN
Description
Adds support for the new enforce_nonce field on the message create endpoint. This enables automatic deduping of messages sent to channels. JDA will now automatically set a unique random nonce on every message, unless a user defined nonce is specified instead.
Reference: https://github.com/discord/discord-api-docs/pull/6647