mirror of
https://github.com/spacebarchat/server.git
synced 2024-09-22 02:31:36 +02:00
✨ MessageAckEvent
This commit is contained in:
parent
952a056014
commit
211781278e
@ -420,6 +420,17 @@ export interface InteractionCreateEvent extends Event {
|
|||||||
data: Interaction;
|
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
|
// located in collection events
|
||||||
|
|
||||||
export enum EVENTEnum {
|
export enum EVENTEnum {
|
||||||
@ -508,6 +519,7 @@ export type EVENT =
|
|||||||
| "APPLICATION_COMMAND_CREATE"
|
| "APPLICATION_COMMAND_CREATE"
|
||||||
| "APPLICATION_COMMAND_UPDATE"
|
| "APPLICATION_COMMAND_UPDATE"
|
||||||
| "APPLICATION_COMMAND_DELETE"
|
| "APPLICATION_COMMAND_DELETE"
|
||||||
|
| "MESSAGE_ACK"
|
||||||
| CUSTOMEVENTS;
|
| CUSTOMEVENTS;
|
||||||
|
|
||||||
export type CUSTOMEVENTS = "INVALIDATED";
|
export type CUSTOMEVENTS = "INVALIDATED";
|
||||||
|
@ -25,6 +25,8 @@ export interface Member {
|
|||||||
mute: boolean;
|
mute: boolean;
|
||||||
pending: boolean;
|
pending: boolean;
|
||||||
settings: UserGuildSettings;
|
settings: UserGuildSettings;
|
||||||
|
read_state: Record<string, string | null>;
|
||||||
|
// virtual
|
||||||
user?: User;
|
user?: User;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,6 +70,7 @@ export const MemberSchema = new Schema({
|
|||||||
deaf: Boolean,
|
deaf: Boolean,
|
||||||
mute: Boolean,
|
mute: Boolean,
|
||||||
pending: Boolean,
|
pending: Boolean,
|
||||||
|
read_state: Object,
|
||||||
settings: {
|
settings: {
|
||||||
channel_overrides: [
|
channel_overrides: [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user