diff --git a/src/util/schemas/RegisterSchema.ts b/src/util/schemas/RegisterSchema.ts
index 7b7de9c70..cfee0f025 100644
--- a/src/util/schemas/RegisterSchema.ts
+++ b/src/util/schemas/RegisterSchema.ts
@@ -1,17 +1,17 @@
/*
Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
Copyright (C) 2023 Spacebar and Spacebar Contributors
-
+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
@@ -19,7 +19,6 @@
export interface RegisterSchema {
/**
* @minLength 2
- * @maxLength 32
*/
username: string;
/**
diff --git a/src/util/schemas/RequestGuildMembersSchema.ts b/src/util/schemas/RequestGuildMembersSchema.ts
index 01ba4f2e9..9e60d26e3 100644
--- a/src/util/schemas/RequestGuildMembersSchema.ts
+++ b/src/util/schemas/RequestGuildMembersSchema.ts
@@ -17,7 +17,7 @@
*/
export interface RequestGuildMembersSchema {
- guild_id: string;
+ guild_id: string | [string];
query?: string;
limit?: number;
presences?: boolean;
@@ -26,7 +26,7 @@ export interface RequestGuildMembersSchema {
}
export const RequestGuildMembersSchema = {
- guild_id: String,
+ guild_id: "" as string | string[],
$query: String,
$limit: Number,
$presences: Boolean,
diff --git a/src/util/schemas/UserModifySchema.ts b/src/util/schemas/UserModifySchema.ts
index 4be6ad43a..e4ed10716 100644
--- a/src/util/schemas/UserModifySchema.ts
+++ b/src/util/schemas/UserModifySchema.ts
@@ -18,8 +18,7 @@
export interface UserModifySchema {
/**
- * @minLength 1
- * @maxLength 100
+ * @minLength 2
*/
username?: string;
avatar?: string | null;
diff --git a/src/util/util/Constants.ts b/src/util/util/Constants.ts
index a6caae003..34e925e59 100644
--- a/src/util/util/Constants.ts
+++ b/src/util/util/Constants.ts
@@ -812,7 +812,7 @@ export const DiscordApiErrors = {
"Cannot execute action on a DM channel",
50003,
),
- EMBED_DISABLED: new ApiError("Guild widget disabled", 50004),
+ EMBED_DISABLED: new ApiError("Widget Disabled", 50004),
CANNOT_EDIT_MESSAGE_BY_OTHER: new ApiError(
"Cannot edit a message authored by another user",
50005,
|