Message: A Class which represents a message object

Description Usage Slots

View source: R/model_message.r

Description

A Class which represents a message object

Usage

1
Message(data, client)

Slots

id

id of the message

channel_id

id of the channel the message was sent in

guild_id

id of the guild the message was sent in

author

the author of this message (not guaranteed to be a valid user, see below)

member

member properties for this message's author

content

contents of the message

timestamp

when this message was sent

edited_timestamp

when this message was edited (or null if never)

tts

whether this was a TTS message

mention_everyone

whether this message mentions everyone

mentions

users specifically mentioned in the message

mention_roles

roles specifically mentioned in this message

attachments

any attached files

embeds

any embedded content

reactions

reactions to the message

nonce

used for validating a message was sent

pinned

whether this message is pinned

webhook_id

if the message is generated by a webhook, this is the webhook's id

type

type of message

activity

sent with Rich Presence-related chat embeds

application

sent with Rich Presence-related chat embeds


TheOnlyArtz/Pirate documentation built on Oct. 31, 2019, 12:12 a.m.