summary refs log tree commit diff
path: root/src/util/interfaces
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-02-19 19:55:28 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-02-19 19:55:43 +0100
commit506954f3dfb855bba9cc5515536c874dc7d0a5b5 (patch)
tree0ff6d01844cdeee846ef11c392e2a0e7b8d36378 /src/util/interfaces
parentAdd .idea to gitignore (diff)
downloadserver-ts-506954f3dfb855bba9cc5515536c874dc7d0a5b5.tar.xz
Add basic message interceptor framework
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Diffstat (limited to 'src/util/interfaces')
-rw-r--r--src/util/interfaces/MessageOptions.ts15
-rw-r--r--src/util/interfaces/index.ts1
2 files changed, 16 insertions, 0 deletions
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