Discord::Message
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
activity
Sourceactivity=(activity : Activity | Nil)
Sourceapplication
Sourceapplication=(application : OAuth2Application | Nil)
Sourceattachments
Sourceattachments=(attachments : Array(Attachment))
Sourceauthor
Sourceauthor=(author : User)
Sourcechannel_id
Sourcechannel_id=(channel_id : Snowflake)
Sourcecontent
Sourcecontent=(content : String)
Sourceedited_timestamp
Sourceedited_timestamp=(edited_timestamp : Time | Nil)
Sourceembeds
Sourceembeds=(embeds : Array(Embed))
Sourceflags
Sourceflags=(flags : MessageFlags | Nil)
Sourceguild_id
Sourceguild_id=(guild_id : Snowflake | Nil)
Sourceid
Sourceid=(id : Snowflake)
Sourcemember
Sourcemember=(member : PartialGuildMember | Nil)
Sourcemention_channels
Sourcemention_channels=(mention_channels : Array(Snowflake) | Nil)
Sourcemention_everyone
Sourcemention_everyone=(mention_everyone : Bool)
Sourcemention_roles
Sourcemention_roles=(mention_roles : Array(Snowflake))
Sourcementions
Sourcementions=(mentions : Array(User))
Sourcemessage_reference
Sourcenonce
Sourcenonce=(nonce : String | Int64 | Nil)
Sourcepinned
Sourcepinned=(pinned : Bool | Nil)
Sourcereactions
Sourcereactions=(reactions : Array(Reaction) | Nil)
Sourcereferenced_message
Sourcereferenced_message=(referenced_message : Message | Nil)
Sourcethread
Sourcethread=(thread : Channel | Nil)
Sourcetimestamp
Sourcetimestamp=(timestamp : Time)
Sourcetts
Sourcetts=(tts : Bool)
Sourcetype
Sourcetype=(type : MessageType)
Sourcewebhook_id
Sourcewebhook_id=(webhook_id : Snowflake | Nil)
Source