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

Allow deletion of non-empty categories #1121

Conversation

DEVTomatoCake
Copy link
Member

Currently, categories with child channels cannot be deleted as they have constraints to the childs.

This change fixes #1117 by nullifying all childs of a category before deleting it, as documented by Discord.

DEVTomatoCake and others added 7 commits June 5, 2024 05:53
- Fix GET Ban using "ban"/"user" instead of "user_id" in params, making it unusable
- Return a processed user object instead of the raw DB one
- Silently ignore already banned users to prevent duplicate bans in the DB
- Return HTTP 204 on successful bans instead of the raw DB ban object
- /:guild_id/bulk-ban endpoint
- Support multiple required permissions for endpoints (untested as I don't know where those are set)
- New API error BULK_BAN_FAILED
@MaddyUnderStars MaddyUnderStars merged commit 6be688d into spacebarchat:master Jun 23, 2024
3 checks passed
@DEVTomatoCake DEVTomatoCake deleted the fix-deleting-non-empty-categories-1117 branch June 23, 2024 10:53
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.

When Deleting a non-empty category you get an http 500 error
2 participants