summary refs log tree commit diff
path: root/src/util/schemas/responses/GuildMessagesSearchResponse.ts
blob: 0b6248b70fee6617b2fedcb64f06211914797e8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import {
	Attachment,
	Embed,
	MessageType,
	PublicUser,
	Role,
} from "../../entities";

export interface GuildMessagesSearchMessage {
	id: string;
	type: MessageType;
	content?: string;
	channel_id: string;
	author: PublicUser;
	attachments: Attachment[];
	embeds: Embed[];
	mentions: PublicUser[];
	mention_roles: Role[];
	pinned: boolean;
	mention_everyone?: boolean;
	tts: boolean;
	timestamp: string;
	edited_timestamp: string | null;
	flags: number;
	components: unknown[];
	hit: true;
}

export interface GuildMessagesSearchResponse {
	messages: GuildMessagesSearchMessage[];
	total_results: number;
}