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

Ban API compat & Bulk Ban endpoint #1120

Merged
merged 5 commits into from
Jun 5, 2024

Conversation

DEVTomatoCake
Copy link
Member

  • Remove duplicated "border-radius" CSS property
  • Add npm run watch to simplify local development so TypeScript automatically builds on file changes

  • 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

- 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 9e1ec8a into spacebarchat:master Jun 5, 2024
2 of 3 checks passed
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