Class: Message
Constructors
new Message()
new Message(
client
,data
):Message
Parameters
Parameter | Type |
---|---|
client | Client |
data | any |
Returns
Defined in
src/core/classes/Message.ts:15 (opens in a new tab)
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
author | public | User | src/core/classes/Message.ts:10 (opens in a new tab) |
channelId | public | string | src/core/classes/Message.ts:12 (opens in a new tab) |
content | public | null | string | src/core/classes/Message.ts:9 (opens in a new tab) |
guildId | public | string | src/core/classes/Message.ts:11 (opens in a new tab) |
id | public | string | src/core/classes/Message.ts:8 (opens in a new tab) |
Accessors
channel
get
channel():null
|TextChannel
Returns
null
| TextChannel
Defined in
src/core/classes/Message.ts:33 (opens in a new tab)
guild
get
guild():null
|Guild
Returns
null
| Guild
Defined in
src/core/classes/Message.ts:29 (opens in a new tab)
Methods
delete()
delete():
Promise
<undefined
|RequestReponse
>
Returns
Promise
<undefined
| RequestReponse
>
Defined in
src/core/classes/Message.ts:44 (opens in a new tab)
sendReference()
sendReference(
content
,options
?):Promise
<undefined
|Message
>
Parameters
Parameter | Type |
---|---|
content | string |
options ? | IMessageSendOptions |
Returns
Promise
<undefined
| Message
>