Skip to main content
POST
/
lobbies
/
{lobby_id}
/
messages
cURL
curl --request POST \
  --url https://discord.com/api/v10/lobbies/{lobby_id}/messages \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "embeds": [
    {
      "type": "<string>",
      "url": "<string>",
      "title": "<string>",
      "color": 8388607,
      "timestamp": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "author": "<unknown>",
      "image": "<unknown>",
      "thumbnail": "<unknown>",
      "footer": "<unknown>",
      "fields": [
        {
          "name": "<string>",
          "value": "<string>",
          "inline": true
        }
      ],
      "provider": "<unknown>",
      "video": "<unknown>"
    }
  ],
  "allowed_mentions": "<unknown>",
  "sticker_ids": [
    "<string>"
  ],
  "components": [
    {
      "type": 1,
      "components": [
        {
          "type": 2,
          "style": 123,
          "id": 1,
          "custom_id": "<string>",
          "label": "<string>",
          "disabled": true,
          "url": "<string>",
          "sku_id": "<unknown>",
          "emoji": "<unknown>"
        }
      ],
      "id": 1
    }
  ],
  "flags": 123,
  "attachments": [
    {
      "id": "<string>",
      "filename": "<string>",
      "description": "<string>",
      "duration_secs": 1073741823.5,
      "waveform": "<string>",
      "title": "<string>",
      "is_remix": true
    }
  ],
  "poll": "<unknown>",
  "shared_client_theme": "<unknown>",
  "message_reference": "<unknown>",
  "nonce": 0,
  "enforce_nonce": true,
  "tts": true
}
'
{
  "id": "<string>",
  "type": 123,
  "content": "<string>",
  "lobby_id": "<string>",
  "channel_id": "<string>",
  "author": {
    "id": "<string>",
    "username": "<string>",
    "avatar": "<string>",
    "discriminator": "<string>",
    "public_flags": 123,
    "flags": 0,
    "global_name": "<string>",
    "primary_guild": "<unknown>",
    "bot": true,
    "system": true,
    "banner": "<string>",
    "accent_color": 123,
    "avatar_decoration_data": "<unknown>",
    "collectibles": "<unknown>"
  },
  "flags": 123,
  "metadata": {},
  "application_id": "<string>"
}

Authorizations

Authorization
string
header
required

Discord bot token

Path Parameters

lobby_id
string<snowflake>
required

Body

content
string | null
Maximum string length: 4000
embeds
object[] | null
Maximum array length: 10
allowed_mentions
object
sticker_ids
string<snowflake>[] | null
Maximum array length: 3
components
object[] | null
Maximum array length: 40
flags
integer | null
attachments
object[] | null
Maximum array length: 10
poll
object
shared_client_theme
object
message_reference
object
nonce
Required range: -9223372036854776000 <= x <= 9223372036854776000
enforce_nonce
boolean | null
tts
boolean | null

Response

201 response for create_lobby_message

id
string<snowflake>
required
type
required
content
string
required
lobby_id
string<snowflake>
required
channel_id
string<snowflake>
required
author
object
required
flags
integer<int32>
required
metadata
object
application_id
string<snowflake>