mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 19:43:16 +00:00
✨ test client
This commit is contained in:
1 parent
4f67c2c86e
commit
5f3cea845d
4 files changed
+116
-3
No files matched your search
@@ -29,8 +29,6 @@ export async function addMember(user_id: bigint, guild_id: bigint, cache?: { gui
|
||||
const user = await getPublicUser(user_id, { guilds: true });
|
||||
|
||||
const guildSize = user.guilds.length;
|
||||
// @ts-ignore
|
||||
user.guilds = undefined;
|
||||
|
||||
const { maxGuilds } = Config.get().limits.user;
|
||||
if (guildSize >= maxGuilds) {
|
||||
|
||||
Reference in new issue
Block a user