-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
ChatMessage.ts
67 lines (65 loc) · 1.59 KB
/
ChatMessage.ts
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ChatEmbed } from "./ChatEmbed";
import type { Mentions } from "./Mentions";
export type ChatMessage = {
/**
* The ID of the message
*/
id: string;
/**
* The type of chat message. "system" messages are generated by Guilded, while "default" messages are user or bot-generated.
*/
type:
| "default"
| "system";
/**
* The ID of the server
*/
serverId?: string;
/**
* The ID of the group
*/
groupId?: string;
/**
* The ID of the channel
*/
channelId: string;
/**
* The content of the message
*/
content?: string;
embeds?: Array<ChatEmbed>;
/**
* Message IDs that were replied to
*/
replyMessageIds?: Array<string>;
/**
* If set, this message will only be seen by those mentioned or replied to
*/
isPrivate?: boolean;
/**
* If set, this message did not notify mention or reply recipients
*/
isSilent?: boolean;
isPinned?: boolean;
mentions?: Mentions;
/**
* The ISO 8601 timestamp that the message was created at
*/
createdAt: string;
/**
* The ID of the user who created this message (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
*/
createdBy: string;
/**
* The ID of the webhook who created this message, if it was created by a webhook
*/
createdByWebhookId?: string;
/**
* The ISO 8601 timestamp that the message was updated at, if relevant
*/
updatedAt?: string;
};