Skip to content

Defined in: zaun/js/index.d.ts:729

new Message(): Message

Message

readonly attachments: Collection<string, Attachment>

Defined in: zaun/js/index.d.ts:742


readonly author: Member

Defined in: zaun/js/index.d.ts:736


readonly authorId: string

Defined in: zaun/js/index.d.ts:735


readonly channel: Channel

Defined in: zaun/js/index.d.ts:732


readonly client: Client

Defined in: zaun/js/index.d.ts:730


readonly community: Community

Defined in: zaun/js/index.d.ts:731


readonly components: ComponentData[]

Defined in: zaun/js/index.d.ts:750

A bot’s buttons, selects and layout; null on a partial message.


content: string

Defined in: zaun/js/index.d.ts:734


readonly createdAt: Date

Defined in: zaun/js/index.d.ts:739


readonly editedAt: Date

Defined in: zaun/js/index.d.ts:740


embeds: Embed[]

Defined in: zaun/js/index.d.ts:745

Its embeds; on a partial message null when the event did not say (an edit that left them as they were).


readonly flags: number

Defined in: zaun/js/index.d.ts:752

MessageFlags bits.


readonly id: string

Defined in: zaun/js/index.d.ts:733


readonly interaction: object

Defined in: zaun/js/index.d.ts:754

The interaction a bot’s reply answers.

interaction_id: string

member_id: string

optional name?: string

type: number


readonly loading: boolean

Defined in: zaun/js/index.d.ts:756

A deferred bot reply still “thinking…”.


mentions: MessageMentions

Defined in: zaun/js/index.d.ts:760

Who it mentions; null on a partial message whose event did not say (an edit that left them as they were). On a message send returns, and after an edit that named some, the ones asked for (the host may have dropped some).


readonly mentionsMe: boolean

Defined in: zaun/js/index.d.ts:762

Whether it mentions this client’s member: by id, by one of its roles, or @everyone.


readonly mine: boolean

Defined in: zaun/js/index.d.ts:737


readonly partial: boolean

Defined in: zaun/js/index.d.ts:748

Known only by what an event said (no history is kept): its id, and for an edit its new text and author. It still acts: reply, edit, delete, react.


readonly replyTo: string

Defined in: zaun/js/index.d.ts:741


readonly sequence: number

Defined in: zaun/js/index.d.ts:738


readonly silent: boolean

Defined in: zaun/js/index.d.ts:764

Sent with SuppressNotifications: its mentions notify nobody.

click(customId, values?): Promise<string>

Defined in: zaun/js/index.d.ts:766

Clicks a button, or chooses values in a select; resolves with the interaction id.

string

string[]

Promise<string>


delete(): Promise<void>

Defined in: zaun/js/index.d.ts:771

Promise<void>


edit(options): Promise<Message>

Defined in: zaun/js/index.d.ts:770

Resolves with this message, its content, embeds and (when the edit named any) mentions as sent.

MessageEditOptions

Promise<Message>


react(emoji): Promise<void>

Defined in: zaun/js/index.d.ts:772

string

Promise<void>


reply(options): Promise<Message>

Defined in: zaun/js/index.d.ts:767

MessageOptions

Promise<Message>


unreact(emoji): Promise<void>

Defined in: zaun/js/index.d.ts:773

string

Promise<void>