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

Document ban delete_message_seconds and remove reason #5219

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

advaith1
Copy link
Member

Updated banning docs:

  • Added delete_message_seconds
  • Marked delete_message_days as deprecated
  • Removed reason, which was removed in v10

@Lulalaby
Copy link
Contributor

reason is replaced with the X-Auditlog-Reason Header right?

@ooliver1
Copy link

reason is replaced with the X-Auditlog-Reason Header right?

As the v10 changelog says, yes

@splatterxl
Copy link
Contributor

Does the new field accept an arbitrary number of seconds or is it a predefined list?

@advaith1
Copy link
Member Author

any number in the range

@DonovanDMC
Copy link
Contributor

Testing this out, it seems to be overreaching. With 4 messages spaced out about 2 minutes each, a delete_message_seconds value of 60 deletes all 4. Tested in both v9 & v10, same results in both. Is this not fully ready yet, or is there some invisible rounding happening behind the scenes?

@infinitestory infinitestory merged commit 7e3e3a3 into discord:main Aug 29, 2022
@advaith1 advaith1 deleted the delete-message-seconds branch August 29, 2022 22:37
itohatweb added a commit to twilight-rs/twilight that referenced this pull request Sep 1, 2022
Additionally deprecated delete message days related functionality.

Reference:discord/discord-api-docs#5219
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.

None yet

6 participants