Discord::Message
Inherits JSON::Serializable / Struct / Value / Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
activity
Sourceactivity=(activity : Activity | Nil)
Sourceattachments
Sourceattachments=(attachments : Array(Attachment))
Sourceauthor
Sourceauthor=(author : User)
Sourcechannel_id
Sourcechannel_id=(channel_id : Snowflake)
Sourcecontent
Sourcecontent=(content : String)
Sourceembeds
Sourceembeds=(embeds : Array(Embed))
Sourceguild_id
Sourceguild_id=(guild_id : Snowflake | Nil)
Sourceid
Sourceid=(id : Snowflake)
Sourcemember
Sourcemember=(member : PartialGuildMember | Nil)
Sourcemention_everyone
Sourcemention_everyone=(mention_everyone : Bool)
Sourcemention_roles
Sourcemention_roles=(mention_roles : Array(Snowflake))
Sourcementions
Sourcementions=(mentions : Array(User))
Sourcenonce
Sourcenonce=(nonce : String | Int64 | Nil)
Sourcepinned
Sourcepinned=(pinned : Bool | Nil)
Sourcereactions
Sourcereactions=(reactions : Array(Reaction) | Nil)
Sourcetimestamp
Sourcetimestamp=(timestamp : Time)
Sourcetts
Sourcetts=(tts : Bool)
Sourcetype
Sourcetype=(type : MessageType)
Sourcewebhook_id
Sourcewebhook_id=(webhook_id : Snowflake | Nil)
Source