class
Discord::Embed
- Discord::Embed
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
discord/models.crConstructors
- .from_message(message : Notify::Message) : Embed
- .new(pull : JSON::PullParser)
- .new(title : Nil | String = nil, url : Nil | String = nil, description : Nil | String = nil, color : Int32 | Nil = nil, author : Nil | Discord::Author = nil, footer : Nil | Discord::Footer = nil)
Class Method Summary
-
.color_from_hex(hex : String | Nil) : Int32 | Nil
Slack で使う "#RRGGBB" 形式の色を Discord が要求する Int32 へ変換する。
Instance Method Summary
- #author : Author | Nil
-
#char_count : Int32
Discord の 6000 文字制限が対象とするフィールド(title / description / author.name / footer.text)の合計文字数。
- #color : Int32 | Nil
- #description : String | Nil
- #footer : Footer | Nil
- #title : String | Nil
- #url : String | Nil
Constructor Detail
Class Method Detail
def self.color_from_hex(hex : String | Nil) : Int32 | Nil
#
Slack で使う "#RRGGBB" 形式の色を Discord が要求する Int32 へ変換する。
Instance Method Detail
def char_count : Int32
#
Discord の 6000 文字制限が対象とするフィールド(title / description / author.name / footer.text)の合計文字数。