Message
Extends
BaseMessage
.ObjectToLower
<Omit
<MessageData
, |"timestamp"
|"author"
|"mentions"
|"components"
|"poll"
>>
Constructors
new Message(client, data)
1new Message(client: UsingClient, data: MessageData): Message
Parameters
Parameter | Type |
---|---|
client | UsingClient |
data | MessageData |
Returns
Inherited from
Source
seyfert/src/structures/Message.ts:128
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
activity | public | undefined | Object | BaseMessage .activity |
application | public | undefined | Object | BaseMessage .application |
applicationId | public | undefined | string | BaseMessage .applicationId |
attachments | public | Object [] | BaseMessage .attachments |
author | public | User | BaseMessage .author |
channelId | public | string | BaseMessage .channelId |
client | readonly | UsingClient | BaseMessage .client |
components | public | MessageActionRowComponent <ActionRowMessageComponents >[] | BaseMessage .components |
content | public | string | BaseMessage .content |
editedTimestamp | public | null | string | BaseMessage .editedTimestamp |
embeds | public | Object [] | BaseMessage .embeds |
flags | public | undefined | MessageFlags | BaseMessage .flags |
guildId | public | undefined | string | BaseMessage .guildId |
id | public | string | BaseMessage .id |
interaction | public | undefined | Object | BaseMessage .interaction |
member? | public | GuildMember | BaseMessage .member |
mentionChannels | public | undefined | Object [] | BaseMessage .mentionChannels |
mentionEveryone | public | boolean | BaseMessage .mentionEveryone |
mentionRoles | public | string [] | BaseMessage .mentionRoles |
mentions | public | Object | BaseMessage .mentions |
mentions.channels | public | APIChannelMention [] | - |
mentions.roles | public | string [] | - |
mentions.users | public | (GuildMember | User )[] | - |
messageReference | public | undefined | Object | BaseMessage .messageReference |
nonce | public | undefined | string | number | BaseMessage .nonce |
pinned | public | boolean | BaseMessage .pinned |
poll? | public | Poll | BaseMessage .poll |
position | public | undefined | number | BaseMessage .position |
reactions | public | undefined | Object [] | BaseMessage .reactions |
referencedMessage | public | undefined | null | Object | BaseMessage .referencedMessage |
resolved | public | undefined | Object | BaseMessage .resolved |
roleSubscriptionData | public | undefined | Object | BaseMessage .roleSubscriptionData |
stickerItems | public | undefined | Object [] | BaseMessage .stickerItems |
stickers | public | undefined | Object [] | BaseMessage .stickers |
thread | public | | undefined | Object | Object | Object | Object | Object | Object | Object | Object | Object | Object | BaseMessage .thread |
timestamp? | public | number | BaseMessage .timestamp |
tts | public | boolean | BaseMessage .tts |
type | public | MessageType | BaseMessage .type |
webhookId | public | undefined | string | BaseMessage .webhookId |
Accessors
createdAt
1get createdAt(): Date
createdAt gets the creation Date instace of the current object.
Returns
Date
Source
seyfert/src/structures/extra/DiscordBase.ts:27
createdTimestamp
1get createdTimestamp(): number
Create a timestamp for the current object.
Returns
number
Source
seyfert/src/structures/extra/DiscordBase.ts:20
url
1get url(): string
Returns
string
Source
seyfert/src/structures/Message.ts:59
user
1get user(): User
Returns
Source
seyfert/src/structures/Message.ts:51
Methods
channel()
1channel(force: boolean): Promise<AllChannels>
Parameters
Parameter | Type | Default value |
---|---|---|
force | boolean | false |
Returns
Promise
<AllChannels
>
Inherited from
Source
seyfert/src/structures/Message.ts:68
createComponentCollector()
1createComponentCollector(options?: ListenerOptions): Object
Parameters
Parameter | Type |
---|---|
options ? | ListenerOptions |
Returns
Object
Member | Type |
---|---|
run | any |
stop | any |
Inherited from
BaseMessage
.createComponentCollector
Source
seyfert/src/structures/Message.ts:55
crosspost()
1crosspost(reason?: string): Promise<Message>
Parameters
Parameter | Type |
---|---|
reason ? | string |
Returns
Promise
<Message
>
Source
seyfert/src/structures/Message.ts:160
delete()
1delete(reason?: string): Promise<void>
Parameters
Parameter | Type |
---|---|
reason ? | string |
Returns
Promise
<void
>
Source
seyfert/src/structures/Message.ts:156
edit()
1edit(body: Omit<RESTPatchAPIChannelMessageJSONBody, "components" | "embeds"> & ResolverProps): Promise<Message>
Parameters
Parameter | Type |
---|---|
body | Omit <RESTPatchAPIChannelMessageJSONBody , "components" | "embeds" > & ResolverProps |
Returns
Promise
<Message
>
Source
seyfert/src/structures/Message.ts:148
fetch()
1fetch(): Promise<Message>
Returns
Promise
<Message
>
Source
seyfert/src/structures/Message.ts:132
guild()
1guild(force: boolean): undefined | Promise<Guild<"cached"> | Guild<"api">>
Parameters
Parameter | Type | Default value |
---|---|---|
force | boolean | false |
Returns
undefined
| Promise
<Guild
<"cached"
> | Guild
<"api"
>>
Inherited from
Source
seyfert/src/structures/Message.ts:63
react()
1react(emoji: EmojiResolvable): Promise<void>
Parameters
Parameter | Type |
---|---|
emoji | EmojiResolvable |
Returns
Promise
<void
>
Inherited from
Source
seyfert/src/structures/Message.ts:72
reply()
1reply(body: Omit<Omit<RESTPostAPIChannelMessageJSONBody, "components" | "embeds" | "poll"> & SendResolverProps, "message_reference">, fail: boolean): Promise<Message>
Parameters
Parameter | Type | Default value |
---|---|---|
body | Omit <Omit <RESTPostAPIChannelMessageJSONBody , "components" | "embeds" | "poll" > & SendResolverProps , "message_reference" > | undefined |
fail | boolean | true |
Returns
Promise
<Message
>
Source
seyfert/src/structures/Message.ts:136
write()
1write(body: Omit<RESTPostAPIChannelMessageJSONBody, "components" | "embeds" | "poll"> & SendResolverProps): Promise<Message>
Parameters
Parameter | Type |
---|---|
body | Omit <RESTPostAPIChannelMessageJSONBody , "components" | "embeds" | "poll" > & SendResolverProps |
Returns
Promise
<Message
>