diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-02-04 23:07:43 +0300 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-02-04 23:07:43 +0300 |
commit | add6b822a5c7e770db32ccde48aea88ef3144c59 (patch) | |
tree | 1d144db2f4708556e4c7731d5145ebd914e68c73 | |
parent | some important changes (diff) | |
download | server-add6b822a5c7e770db32ccde48aea88ef3144c59.tar.xz |
ban moderator schema change
-rw-r--r-- | api/src/routes/guilds/#guild_id/bans.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/src/routes/guilds/#guild_id/bans.ts b/api/src/routes/guilds/#guild_id/bans.ts index 3b943476..8c0bdee6 100644 --- a/api/src/routes/guilds/#guild_id/bans.ts +++ b/api/src/routes/guilds/#guild_id/bans.ts @@ -126,6 +126,7 @@ router.delete("/:user_id", route({ permission: "BAN_MEMBERS" }), async (req: Req if (ban.user_id === ban.executor_id) throw DiscordApiErrors.UNKNOWN_BAN; // make self-bans irreversible and hide them from view to avoid victim chasing + const banned_user = await User.getPublicUser(banned_user_id); await Promise.all([ Ban.delete({ |