summary refs log tree commit diff
path: root/src/util/Member.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-23 22:02:50 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-23 22:02:50 +0100
commit5c11bf1b87fdd150ba4caf3f6276c01014558b71 (patch)
tree5815bcbc38bacc35a35006c850e3ab74136d347d /src/util/Member.ts
parent:bug: fix addMember to respect max guild size (diff)
downloadserver-5c11bf1b87fdd150ba4caf3f6276c01014558b71.tar.xz
:bug: [Member] list fix to also return user
Diffstat (limited to 'src/util/Member.ts')
-rw-r--r--src/util/Member.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/Member.ts b/src/util/Member.ts

index f3097828..2df34073 100644 --- a/src/util/Member.ts +++ b/src/util/Member.ts
@@ -34,7 +34,7 @@ export async function addMember(user_id: bigint, guild_id: bigint, cache?: { gui const { maxGuilds } = Config.get().limits.user; if (guildSize >= maxGuilds) { - throw new HTTPError(` You are at the ${maxGuilds} server limit.`, 403); + throw new HTTPError(`You are at the ${maxGuilds} server limit.`, 403); } const guild = cache?.guild || (await GuildModel.findOne({ id: guild_id }).exec());