From 506954f3dfb855bba9cc5515536c874dc7d0a5b5 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sun, 19 Feb 2023 19:55:28 +0100 Subject: Add basic message interceptor framework Signed-off-by: TheArcaneBrony --- src/util/interfaces/MessageOptions.ts | 15 +++++++++++++++ src/util/interfaces/index.ts | 1 + 2 files changed, 16 insertions(+) create mode 100644 src/util/interfaces/MessageOptions.ts (limited to 'src/util/interfaces') diff --git a/src/util/interfaces/MessageOptions.ts b/src/util/interfaces/MessageOptions.ts new file mode 100644 index 00000000..3705e668 --- /dev/null +++ b/src/util/interfaces/MessageOptions.ts @@ -0,0 +1,15 @@ +import { Attachment, Embed, MessageCreateSchema, MessageType } from "@fosscord/util*"; + +export interface MessageOptions extends MessageCreateSchema { + id?: string; + type?: MessageType; + pinned?: boolean; + author_id?: string; + webhook_id?: string; + application_id?: string; + embeds?: Embed[]; + channel_id?: string; + attachments?: Attachment[]; + edited_timestamp?: Date; + timestamp?: Date; +} \ No newline at end of file diff --git a/src/util/interfaces/index.ts b/src/util/interfaces/index.ts index fa259ce1..96a0e9c2 100644 --- a/src/util/interfaces/index.ts +++ b/src/util/interfaces/index.ts @@ -21,3 +21,4 @@ export * from "./Presence"; export * from "./Interaction"; export * from "./Event"; export * from "./Status"; +export * from "./MessageOptions"; \ No newline at end of file -- cgit 1.5.1