コンテンツにスキップ

LegacyとComponents V2

メッセージの基本

Discordのメッセージは、チャンネルに投稿される一つの内容です。形式に応じて本文、埋め込み、投票、コンポーネントを組み合わせられます。

文章と埋め込みで告知を作るなら Legacy、文章や画像、操作部品を自由な順序で並べるなら Components V2 を選びます。表示幅やクライアントによって見え方が変わるため、送信後はDiscordでも確認してください。

Kitは編集用の原稿です。保存しても送信や投稿済みメッセージの変更は行われません。対応するBotメッセージを編集するには、Open in Pokkanを使います。

広く告知する前に、許可するメンションを確認しましょう。

Components V2

Text Display は文章、Container は関連する部品のまとまり、Section は文章と横のボタンやサムネイルに使います。区切りで余白を調整できます。画像には公開URLか、送信側が用意した添付ファイルへの参照を使います。

上限は入れ子を含めて40コンポーネントです。未完成の行やSectionを完成させる領域も予約するため、別の挿入ボタンが表示されなくなることがあります。

V2はLegacyの本文や埋め込みの代わりにText Displayなどを使います。投票やスタンプが必要ならLegacyを選んでください。

Pokkanはメッセージ編集時に既存の添付ファイル参照を保持します。ローカルファイルのアップロードには対応していません。

Legacy は本文、埋め込み、投票、操作用の行を組み合わせます。Components V2 は文章やメディアを部品として並べ、短い説明の横にもボタンを置けます。

作りたい内容 向いている形式
埋め込みの上に通常の本文 Legacy
投票 Legacy
著者、フィールド、フッター付きの埋め込み Legacy
画像の間に複数の文章ブロック Components V2
説明の横にボタンやサムネイル Components V2
ContainerやSectionでまとめたレイアウト Components V2

次の英語の例は、両形式の完成したレイアウトです。Legacyでは埋め込みに説明と画像を置き、ボタンを行に入れています。V2ではContainerに画像、説明、ボタン付きSectionをまとめています。

これはレイアウトの例です。ticket:create というカスタムIDの処理には、チケットを実装した外部アプリが必要です。コピーするだけでチケット機能が動くわけではありません。

必要な形式でKitを作成し、送信前に検証結果を確認してください。

編集できるメッセージエディターで開く
Pokkan
PokkanAPP

Need a hand? Our support team is here to help.

Tell us what you need help with and include any details that will help the team understand the issue.


Before opening a ticket

Check the pinned answers for common questions. Please open one ticket per issue and never send passwords or authentication codes.

Embed 画像
編集できるメッセージエディターで開く
Pokkan
PokkanAPP

How can we help?

Contact the support team about an account issue, a purchase or a community question.

Start a ticket

Describe one issue and include the details the team needs. Never share passwords or authentication codes.

Please avoid opening several tickets for the same issue.