Skip to content

Instantly share code, notes, and snippets.

@tuna2134
Last active May 1, 2024 02:30
Show Gist options
  • Save tuna2134/e7f69524258ffc585f1b9e5c5741c11b to your computer and use it in GitHub Desktop.
Save tuna2134/e7f69524258ffc585f1b9e5c5741c11b to your computer and use it in GitHub Desktop.

Message forward API

My memo docs

Example payload

{
    "message_reference": {
        "type": 1,
        "channel_id": 111111111111111111,
        "guild_id": 111111111111111111,
        "message_id": 111111111111111111
    }
}

Message reference type

name value description
DEFAULT 0 Traditional reference(reply)
FORWARD 1 Forward message

Response

message_snapshots is data of forward target data. (Message Object + guild_id)

{
    "author": {
        "id": 123456789012345678,
    },
    "message_reference": {
        "type": 1,  // FORWARD
        "message_id": "123456789012345678",
        "channel_id": "123456789012345678",
        "guild_id": "123456789012345678"
    },
    "message_snapshots": [
        {
            "content": "hello world",
            "embeds": [],
            "attachments": [],
            "guild_id": 123456789012345678
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment