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

Update create guild ban endpoint #679

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

lukellmann
Copy link
Member

@lukellmann lukellmann commented Aug 30, 2022

  • deprecate GuildBanCreateRequest.reason, GuildBanCreateRequest.deleteMessagesDays and BanCreateBuilder.deleteMessagesDays
  • don't send reason in JSON payload when using BanCreateBuilder (GuildService.addGuildBan() already uses X-Audit-Log-Reason header)
  • add GuildBanCreateRequest.deleteMessageSeconds and BanCreateBuilder.deleteMessageDuration

see discord/discord-api-docs#5219, merged in discord/discord-api-docs@7e3e3a3

- add `delete_message_seconds`
- deprecate `reason` and `delete_message_days`
@lukellmann lukellmann requested a review from HopeBaron August 31, 2022 20:47
@HopeBaron HopeBaron merged commit feddba2 into 0.8.x Sep 12, 2022
@lukellmann lukellmann deleted the feature/ban-delete-message-seconds branch September 12, 2022 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants