mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 15:22:43 +00:00
✨ test client
This commit is contained in:
1 parent
4f67c2c86e
commit
5f3cea845d
4 files changed
+116
-3
No files matched your search
+1
-1
@@ -90,7 +90,7 @@ export class DiscordServer extends Server {
|
||||
...req.headers,
|
||||
},
|
||||
});
|
||||
const buffer = await response.text();
|
||||
const buffer = await response.buffer();
|
||||
|
||||
response.headers.forEach((value, name) => {
|
||||
if (
|
||||
|
||||
@@ -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