class

Discord::Post

Inherits JSON::Serializable < Reference < Object

Constructors

new(embeds : Array(Discord::Embed), content : Nil | String = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

build(messages : Array(Notify::Message)) : Array(Post)

中立メッセージ列を Discord の投稿単位へ分割して組み立てる。 embeds は最大 10 件、かつ 1 メッセージ内 embeds の合計文字数が 6000 を 超えないよう詰め込む(超過すると Discord が 400 を返すため)。

Source

Instance methods

content
Source
embeds
Source