summary refs log tree commit diff
path: root/api/src/routes/guilds/#guild_id
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-30 12:15:06 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-30 12:15:06 +0200
commit584d4a039c8752f76cc5431b423ff41439794366 (patch)
tree4ff201c66207e28ba1f3a3c997ae2d56c405977a /api/src/routes/guilds/#guild_id
parent:zap: only local rate limit to prevent to much pressure on the database (diff)
downloadserver-584d4a039c8752f76cc5431b423ff41439794366.tar.xz
:construction: typeorm
Diffstat (limited to 'api/src/routes/guilds/#guild_id')
-rw-r--r--api/src/routes/guilds/#guild_id/roles.ts2
-rw-r--r--api/src/routes/guilds/#guild_id/templates.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/api/src/routes/guilds/#guild_id/roles.ts b/api/src/routes/guilds/#guild_id/roles.ts

index e9e777b9..796a8eb8 100644 --- a/api/src/routes/guilds/#guild_id/roles.ts +++ b/api/src/routes/guilds/#guild_id/roles.ts
@@ -40,7 +40,7 @@ router.post("/", check(RoleModifySchema), async (req: Request, res: Response) => managed: false, position: 0, tags: null, - permissions: perms.bitfield & (body.permissions || 0n) + permissions: String(perms.bitfield & (body.permissions || 0n)) }).save(); await emitEvent({ diff --git a/api/src/routes/guilds/#guild_id/templates.ts b/api/src/routes/guilds/#guild_id/templates.ts
index e1d2f5fd..a7613abf 100644 --- a/api/src/routes/guilds/#guild_id/templates.ts +++ b/api/src/routes/guilds/#guild_id/templates.ts
@@ -17,7 +17,7 @@ const TemplateGuildProjection: (keyof Guild)[] = [ "preferred_locale", "afk_timeout", "roles", - "channels", + // "channels", "afk_channel_id", "system_channel_id", "system_channel_flags",