class

Discord::Embed

Inherits JSON::Serializable < Reference < Object

Constructors

from_message(message : Notify::Message) : Embed
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

color_from_hex(hex : String | Nil) : Int32 | Nil

Slack で使う "#RRGGBB" 形式の色を Discord が要求する Int32 へ変換する。

Source

Instance methods

author
Source
char_count

Discord の 6000 文字制限が対象とするフィールド(title / description / author.name / footer.text)の合計文字数。

Source
color
Source
description
Source
title
Source