parent
81d4313631
commit
e8d3f655a3
@ -46,6 +46,7 @@ import {
|
|||||||
handleFile,
|
handleFile,
|
||||||
Permissions,
|
Permissions,
|
||||||
normalizeUrl,
|
normalizeUrl,
|
||||||
|
Reaction,
|
||||||
} from "@spacebar/util";
|
} from "@spacebar/util";
|
||||||
import { HTTPError } from "lambert-server";
|
import { HTTPError } from "lambert-server";
|
||||||
import { In } from "typeorm";
|
import { In } from "typeorm";
|
||||||
@ -76,7 +77,7 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
|
|||||||
channel_id: opts.channel_id,
|
channel_id: opts.channel_id,
|
||||||
attachments: opts.attachments || [],
|
attachments: opts.attachments || [],
|
||||||
embeds: opts.embeds || [],
|
embeds: opts.embeds || [],
|
||||||
reactions: /*opts.reactions ||*/ [],
|
reactions: opts.reactions || [],
|
||||||
type: opts.type ?? 0,
|
type: opts.type ?? 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -436,6 +437,7 @@ interface MessageOptions extends MessageCreateSchema {
|
|||||||
webhook_id?: string;
|
webhook_id?: string;
|
||||||
application_id?: string;
|
application_id?: string;
|
||||||
embeds?: Embed[];
|
embeds?: Embed[];
|
||||||
|
reactions?: Reaction[];
|
||||||
channel_id?: string;
|
channel_id?: string;
|
||||||
attachments?: Attachment[];
|
attachments?: Attachment[];
|
||||||
edited_timestamp?: Date;
|
edited_timestamp?: Date;
|
||||||
|
|||||||
Reference in New Issue
Block a user