Message
Defined in: zaun/js/index.d.ts:729
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Message():
Message
Returns
Section titled “Returns”Message
Properties
Section titled “Properties”attachments
Section titled “attachments”
readonlyattachments:Collection<string,Attachment>
Defined in: zaun/js/index.d.ts:742
author
Section titled “author”
readonlyauthor:Member
Defined in: zaun/js/index.d.ts:736
authorId
Section titled “authorId”
readonlyauthorId:string
Defined in: zaun/js/index.d.ts:735
channel
Section titled “channel”
readonlychannel:Channel
Defined in: zaun/js/index.d.ts:732
client
Section titled “client”
readonlyclient:Client
Defined in: zaun/js/index.d.ts:730
community
Section titled “community”
readonlycommunity:Community
Defined in: zaun/js/index.d.ts:731
components
Section titled “components”
readonlycomponents:ComponentData[]
Defined in: zaun/js/index.d.ts:750
A bot’s buttons, selects and layout; null on a partial message.
content
Section titled “content”content:
string
Defined in: zaun/js/index.d.ts:734
createdAt
Section titled “createdAt”
readonlycreatedAt:Date
Defined in: zaun/js/index.d.ts:739
editedAt
Section titled “editedAt”
readonlyeditedAt:Date
Defined in: zaun/js/index.d.ts:740
embeds
Section titled “embeds”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).
readonlyflags:number
Defined in: zaun/js/index.d.ts:752
MessageFlags bits.
readonlyid:string
Defined in: zaun/js/index.d.ts:733
interaction
Section titled “interaction”
readonlyinteraction:object
Defined in: zaun/js/index.d.ts:754
The interaction a bot’s reply answers.
interaction_id
Section titled “interaction_id”interaction_id:
string
member_id
Section titled “member_id”member_id:
string
optionalname?:string
type:
number
loading
Section titled “loading”
readonlyloading:boolean
Defined in: zaun/js/index.d.ts:756
A deferred bot reply still “thinking…”.
mentions
Section titled “mentions”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).
mentionsMe
Section titled “mentionsMe”
readonlymentionsMe: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.
readonlymine:boolean
Defined in: zaun/js/index.d.ts:737
partial
Section titled “partial”
readonlypartial: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.
replyTo
Section titled “replyTo”
readonlyreplyTo:string
Defined in: zaun/js/index.d.ts:741
sequence
Section titled “sequence”
readonlysequence:number
Defined in: zaun/js/index.d.ts:738
silent
Section titled “silent”
readonlysilent:boolean
Defined in: zaun/js/index.d.ts:764
Sent with SuppressNotifications: its mentions notify nobody.
Methods
Section titled “Methods”click()
Section titled “click()”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.
Parameters
Section titled “Parameters”customId
Section titled “customId”string
values?
Section titled “values?”string[]
Returns
Section titled “Returns”Promise<string>
delete()
Section titled “delete()”delete():
Promise<void>
Defined in: zaun/js/index.d.ts:771
Returns
Section titled “Returns”Promise<void>
edit()
Section titled “edit()”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.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<Message>
react()
Section titled “react()”react(
emoji):Promise<void>
Defined in: zaun/js/index.d.ts:772
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
reply()
Section titled “reply()”reply(
options):Promise<Message>
Defined in: zaun/js/index.d.ts:767
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<Message>
unreact()
Section titled “unreact()”unreact(
emoji):Promise<void>
Defined in: zaun/js/index.d.ts:773
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>