Skip to content

Message

Extends

Constructors

new Message(client, data)

1
new Message(client: UsingClient, data: MessageData): Message

Parameters

ParameterType
clientUsingClient
dataMessageData

Returns

Message

Inherited from

BaseMessage.constructor

Source

seyfert/src/structures/Message.ts:128

Properties

PropertyModifierTypeInherited from
activitypublicundefined | ObjectBaseMessage.activity
applicationpublicundefined | ObjectBaseMessage.application
applicationIdpublicundefined | stringBaseMessage.applicationId
attachmentspublicObject[]BaseMessage.attachments
authorpublicUserBaseMessage.author
channelIdpublicstringBaseMessage.channelId
clientreadonlyUsingClientBaseMessage.client
componentspublicMessageActionRowComponent<ActionRowMessageComponents>[]BaseMessage.components
contentpublicstringBaseMessage.content
editedTimestamppublicnull | stringBaseMessage.editedTimestamp
embedspublicObject[]BaseMessage.embeds
flagspublicundefined | MessageFlagsBaseMessage.flags
guildIdpublicundefined | stringBaseMessage.guildId
idpublicstringBaseMessage.id
interactionpublicundefined | ObjectBaseMessage.interaction
member?publicGuildMemberBaseMessage.member
mentionChannelspublicundefined | Object[]BaseMessage.mentionChannels
mentionEveryonepublicbooleanBaseMessage.mentionEveryone
mentionRolespublicstring[]BaseMessage.mentionRoles
mentionspublicObjectBaseMessage.mentions
mentions.channelspublicAPIChannelMention[]-
mentions.rolespublicstring[]-
mentions.userspublic(GuildMember | User)[]-
messageReferencepublicundefined | ObjectBaseMessage.messageReference
noncepublicundefined | string | numberBaseMessage.nonce
pinnedpublicbooleanBaseMessage.pinned
poll?publicPollBaseMessage.poll
positionpublicundefined | numberBaseMessage.position
reactionspublicundefined | Object[]BaseMessage.reactions
referencedMessagepublicundefined | null | ObjectBaseMessage.referencedMessage
resolvedpublicundefined | ObjectBaseMessage.resolved
roleSubscriptionDatapublicundefined | ObjectBaseMessage.roleSubscriptionData
stickerItemspublicundefined | Object[]BaseMessage.stickerItems
stickerspublicundefined | Object[]BaseMessage.stickers
threadpublic| undefined | Object | Object | Object | Object | Object | Object | Object | Object | Object | ObjectBaseMessage.thread
timestamp?publicnumberBaseMessage.timestamp
ttspublicbooleanBaseMessage.tts
typepublicMessageTypeBaseMessage.type
webhookIdpublicundefined | stringBaseMessage.webhookId

Accessors

createdAt

1
get createdAt(): Date

createdAt gets the creation Date instace of the current object.

Returns

Date

Source

seyfert/src/structures/extra/DiscordBase.ts:27


createdTimestamp

1
get createdTimestamp(): number

Create a timestamp for the current object.

Returns

number

Source

seyfert/src/structures/extra/DiscordBase.ts:20


url

1
get url(): string

Returns

string

Source

seyfert/src/structures/Message.ts:59


user

1
get user(): User

Returns

User

Source

seyfert/src/structures/Message.ts:51

Methods

channel()

1
channel(force: boolean): Promise<AllChannels>

Parameters

ParameterTypeDefault value
forcebooleanfalse

Returns

Promise<AllChannels>

Inherited from

BaseMessage.channel

Source

seyfert/src/structures/Message.ts:68


createComponentCollector()

1
createComponentCollector(options?: ListenerOptions): Object

Parameters

ParameterType
options?ListenerOptions

Returns

Object

MemberType
runany
stopany

Inherited from

BaseMessage.createComponentCollector

Source

seyfert/src/structures/Message.ts:55


crosspost()

1
crosspost(reason?: string): Promise<Message>

Parameters

ParameterType
reason?string

Returns

Promise<Message>

Source

seyfert/src/structures/Message.ts:160


delete()

1
delete(reason?: string): Promise<void>

Parameters

ParameterType
reason?string

Returns

Promise<void>

Source

seyfert/src/structures/Message.ts:156


edit()

1
edit(body: Omit<RESTPatchAPIChannelMessageJSONBody, "components" | "embeds"> & ResolverProps): Promise<Message>

Parameters

ParameterType
bodyOmit<RESTPatchAPIChannelMessageJSONBody, "components" | "embeds"> & ResolverProps

Returns

Promise<Message>

Source

seyfert/src/structures/Message.ts:148


fetch()

1
fetch(): Promise<Message>

Returns

Promise<Message>

Source

seyfert/src/structures/Message.ts:132


guild()

1
guild(force: boolean): undefined | Promise<Guild<"cached"> | Guild<"api">>

Parameters

ParameterTypeDefault value
forcebooleanfalse

Returns

undefined | Promise<Guild<"cached"> | Guild<"api">>

Inherited from

BaseMessage.guild

Source

seyfert/src/structures/Message.ts:63


react()

1
react(emoji: EmojiResolvable): Promise<void>

Parameters

ParameterType
emojiEmojiResolvable

Returns

Promise<void>

Inherited from

BaseMessage.react

Source

seyfert/src/structures/Message.ts:72


reply()

1
reply(body: Omit<Omit<RESTPostAPIChannelMessageJSONBody, "components" | "embeds" | "poll"> & SendResolverProps, "message_reference">, fail: boolean): Promise<Message>

Parameters

ParameterTypeDefault value
bodyOmit<Omit<RESTPostAPIChannelMessageJSONBody, "components" | "embeds" | "poll"> & SendResolverProps, "message_reference">undefined
failbooleantrue

Returns

Promise<Message>

Source

seyfert/src/structures/Message.ts:136


write()

1
write(body: Omit<RESTPostAPIChannelMessageJSONBody, "components" | "embeds" | "poll"> & SendResolverProps): Promise<Message>

Parameters

ParameterType
bodyOmit<RESTPostAPIChannelMessageJSONBody, "components" | "embeds" | "poll"> & SendResolverProps

Returns

Promise<Message>

Source

seyfert/src/structures/Message.ts:152