disnake
disnake copied to clipboard
feat(guild): support guild incidents
Summary
Adds IncidentsData, as well as two new parameters invites_disabled_until and dms_disabled_until to Guild.edit.
The already existing invites_disabled parameter (and corresponding INVITES_DISABLED feature) still works, and appears to override any duration set by invites_disabled_until on Discord's end.
https://github.com/discord/discord-api-docs/pull/6396
Checklist
- [x] If code changes were made, then they have been tested
- [x] I have updated the documentation to reflect the changes
- [x] I have formatted the code properly by running
pdm lint - [x] I have type-checked the code by running
pdm pyright
- [ ] This PR fixes an issue
- [x] This PR adds something new (e.g. new method or parameters)
- [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
- [ ] This PR is not a code change (e.g. documentation, README, ...)