struct

Discord::Message

Inherits JSON::Serializable / Struct / Value / Object

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

activity
Source
activity=(activity : Activity | Nil)
Source
attachments
Source
attachments=(attachments : Array(Attachment))
Source
author
Source
author=(author : User)
Source
channel_id
Source
channel_id=(channel_id : Snowflake)
Source
content
Source
content=(content : String)
Source
embeds
Source
embeds=(embeds : Array(Embed))
Source
guild_id
Source
guild_id=(guild_id : Snowflake | Nil)
Source
id=(id : Snowflake)
Source
member
Source
member=(member : PartialGuildMember | Nil)
Source
mention_everyone
Source
mention_everyone=(mention_everyone : Bool)
Source
mention_roles
Source
mention_roles=(mention_roles : Array(Snowflake))
Source
mentions
Source
mentions=(mentions : Array(User))
Source
nonce
Source
nonce=(nonce : String | Int64 | Nil)
Source
pinned
Source
pinned=(pinned : Bool | Nil)
Source
reactions
Source
reactions=(reactions : Array(Reaction) | Nil)
Source
timestamp
Source
timestamp=(timestamp : Time)
Source
tts=(tts : Bool)
Source
type
Source
type=(type : MessageType)
Source
webhook_id
Source
webhook_id=(webhook_id : Snowflake | Nil)
Source