mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-14 20:35:17 +00:00
More schema stuff
This commit is contained in:
@@ -212,7 +212,7 @@ router.put(
|
||||
author_id: req.user_id,
|
||||
id: message_id,
|
||||
embeds,
|
||||
channel_id,
|
||||
channel_id: channel_id!,
|
||||
attachments,
|
||||
edited_timestamp: undefined,
|
||||
timestamp: new Date(snowflake.timestamp),
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
import { InteractionType, Snowflake } from "@spacebar/util";
|
||||
import { ApplicationCommandType, BaseMessageComponents, Embed, PollAnswer, PollMedia, PublicUser } from "@spacebar/schemas";
|
||||
import { AllowedMentions, MessageReference, ApplicationCommandType, BaseMessageComponents, Embed, PollAnswer, PollMedia, PublicUser } from "@spacebar/schemas";
|
||||
|
||||
export type MessageCreateAttachment = {
|
||||
id: string;
|
||||
@@ -42,19 +42,8 @@ export interface MessageCreateSchema {
|
||||
embeds?: Embed[] | null;
|
||||
embed?: Embed | null;
|
||||
// TODO: ^ embed is deprecated in favor of embeds (https://discord.com/developers/docs/resources/channel#message-object)
|
||||
allowed_mentions?: {
|
||||
parse?: string[] | null;
|
||||
roles?: string[] | null;
|
||||
users?: string[] | null;
|
||||
replied_user?: boolean;
|
||||
} | null;
|
||||
message_reference?: {
|
||||
message_id?: string;
|
||||
channel_id?: string;
|
||||
guild_id?: string;
|
||||
fail_if_not_exists?: boolean;
|
||||
type?: number;
|
||||
} | null;
|
||||
allowed_mentions?: AllowedMentions | null;
|
||||
message_reference?: MessageReference | null;
|
||||
payload_json?: string;
|
||||
file?: { filename: string };
|
||||
// TODO: we should create an interface for attachments
|
||||
|
||||
Reference in New Issue
Block a user