Skip to content

Message

This data type describes all available data about the message in channel.

Properties

PropertyTypeDescription
idNumberUnique identifier
contentRawStringThe raw textual content of this message
contentDisplayStringThe textual content of this message in the format that would be shown to the Discord client
contentStrippedStringThe textual content of this message in the format that would be shown to the Discord client and all the markdown stripped
jumpUrlStringJump-to URL
channelTextChannel, NewsChannel, VoiceChannel, ThreadChannelChannel of this message
guildGuildServer information
authorMemberMessage author
createdAtDateTimeCreation date and time
mentionedMembersList<Member>List of mentioned members
mentionedChannelsList<TextChannel, NewsChannel, VoiceChannel, StageChannel, ForumChannel, MediaChannel>List of mentioned text channels
mentionedRolesList<Role>List of mentioned roles
attachmentsList<Attachment>List of attachments
referencedMessageMessageReply message

Methods

delete()

Deletes this message

pin()

Pins this message. Returns true is successful.

Returns: Boolean

unpin()

Unpins this message. Returns true is successful.

Returns: Boolean

All rights sniffed.