mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 15:13:05 +00:00
Merge branch 'master' of https://github.com/DEVTomatoCake/spacebar-server into feat/local-image-proxy
This commit is contained in:
commit
e24297b67c
18 files changed
+182
-66
No files matched your search
@@ -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;
|
||||
/**
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -18,8 +18,7 @@
|
||||
|
||||
export interface UserModifySchema {
|
||||
/**
|
||||
* @minLength 1
|
||||
* @maxLength 100
|
||||
* @minLength 2
|
||||
*/
|
||||
username?: string;
|
||||
avatar?: string | null;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user