Class Message

Inherits from

Constructors

Name Description
this
this

Fields

Name Type Description
attachments MessageAttachment[]
author User
channel Channel
channelID ulong
content string
editedTimestamp string
embeds MessageEmbed[]
id ulong
mentionEveryone bool
mentions ModelMap!(ulong,dscord.types.user.User)
nonce string
pinned bool
roleMentions ModelMap!(ulong,dscord.types.guild.Role)
timestamp string
tts bool
client Client

Properties

Name Type Description
customEmojiByID [get] ulong[] Returns an array of emoji IDs for all custom emoji used in this message.
guild [get] Guild Guild this message was sent in (if applicable).
mentioned [get] bool

Methods

Name Description
canDelete Whether the bot can edit this message
canEdit Whether the bot can edit this message
del Deletes this message.
edit Edits this message contents with a Sendable.
edit Edits this message contents.
init
load
replaceMentions Returns the message contents, replacing all mentions with the result from the specified delegate.
reply Sends a new message to the same channel as this message.
reply Sends a Sendable to the same channel as this message.
replyf Sends a new formatted message to the same channel as this message.
withoutMentions
withProperMentions