1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-22 02:31:36 +02:00

MessageAckEvent

This commit is contained in:
Flam3rboy 2021-05-21 21:40:03 +02:00
parent 952a056014
commit 211781278e
2 changed files with 15 additions and 0 deletions

View File

@ -420,6 +420,17 @@ export interface InteractionCreateEvent extends Event {
data: Interaction;
}
export interface MessageAckEvent extends Event {
event: "MESSAGE_ACK";
data: {
channel_id: string;
message_id: string;
version?: number;
manual?: boolean;
mention_count?: number;
};
}
// located in collection events
export enum EVENTEnum {
@ -508,6 +519,7 @@ export type EVENT =
| "APPLICATION_COMMAND_CREATE"
| "APPLICATION_COMMAND_UPDATE"
| "APPLICATION_COMMAND_DELETE"
| "MESSAGE_ACK"
| CUSTOMEVENTS;
export type CUSTOMEVENTS = "INVALIDATED";

View File

@ -25,6 +25,8 @@ export interface Member {
mute: boolean;
pending: boolean;
settings: UserGuildSettings;
read_state: Record<string, string | null>;
// virtual
user?: User;
}
@ -68,6 +70,7 @@ export const MemberSchema = new Schema({
deaf: Boolean,
mute: Boolean,
pending: Boolean,
read_state: Object,
settings: {
channel_overrides: [
{