API /:guild_id/bans compat
- 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
1 parent 41a2612 commit 631788537c5283167bd63648db75e7b36205b3b7
@TomatoCake TomatoCake authored on 5 Jun 2024
Showing 1 changed file
View
src/api/routes/guilds/#guild_id/bans.ts