blob: 12e8f490b279a78ae3719c55b26a107765216679 (
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
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
68
69
|
---
name: Message
description: >
A representation of a message sent over a guild's text channel, a group, or a
private channel.
fields:
- name: id
description: Message Id. Can be used to calculate the message creation date.
type: MessageId
- name: attachments
description: Array of attached files a message has.
array: true
type: Attachment
- name: author
description: User that sent the message.
type: User
- name: channel_id
description: Channel to which the message was sent.
type: ChannelId
- name: content
description: Message's content.
type: string
- name: edited_timestamp
description: >
If the message was edited, this will show the last edit timestamp.
optional: true
type: string
- name: embeds
description: Array of embeds a message has.
array: true
type: Embed
- name: kind
description: Lets you differentiate system messages and regular messages.
from: type
type: MessageType
- name: mention_everyone
description: >
Shows you whether this message actually mentions everyone or not.
type: bool
- name: mention_roles
description: Array of roles mentioned by the message.
array: true
type: RoleId
- name: mentions
description: Array of users mentioned by the messages.
array: true
type: User
- name: nonce
description: Non-repeating number used for ensuring message order.
optional: true
type: string
- name: pinned
description: True if message is pinned.
type: bool
- name: reactions
description: Array of reactions performed on the message.
array: true
default: Vec::default()
type: MessageReaction
- name: timestamp
description: Initial message creation timestamp calculated from Id.
type: string
- name: tts
description: True if message was sent with /tts command.
type: bool
- name: webhook_id
description: An id of a webhook if message was sent using one.
optional: true
type: WebhookId
|