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

Warning! Quota

This method can only be invoked 1 times in the same template.

pin()

Pins this message. Returns true is successful.

Returns: Boolean

Warning! Quota

Following methods have shared quota and can only be invoked 1 times in the same template:

  • pin
  • unpin

unpin()

Unpins this message. Returns true is successful.

Returns: Boolean

Warning! Quota

Following methods have shared quota and can only be invoked 1 times in the same template:

  • pin
  • unpin

All rights sniffed.