BDFDiscordData
Search
K

/message

Retrieves information of the given message
Some information may be missing or inaccurate if your bot does not include the MessageContentIntent

Endpoint Headers:

  • bot-token - Token of the Bot [String] (Required)
  • apikey - Your Api Auth Key [String] (Required)
  • chan-id - ID of the channel to be fetched [Snowflake] (Required)
  • msg-id - ID of the message to be fetched [Snowflake] (Required)

Examples:

Data API version required. Must replace <version> with either release or beta.
Bot Designer for Discord
Example usage of /message endpoint using BDFD
$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpAddHeader[bot-token;<YOUR-BOT-TOKEN>]
$httpAddHeader[guild-id;1064098700307218463]
$httpAddHeader[chan-id;1064098700307218463]
$httpAddHeader[msg-id;1064098700847210194]
$httpGet[https://bdfddata.rickyjs.xyz/<version>/message]
$httpResult OR $httpResult[details]
Discord.js
Example usage of /message endpoint using Discord.js
const axios = require('axios');
(async () => {
return await axios.get('https://bdfddata.rickyjs.xyz/<version>/message', {
headers: {
'apikey': <YOUR-API-KEY>,
'bot-token': <YOUR-BOT-TOKEN>,
'guild-id': '1064098700307218463',
'chan-id': '1064098700307218463',
'msg-id': '1064098700847210194'
}
}).then(res=>res.data)
})()

Possible Responses (Codes)

Code 200
API succeeded and details were fetched.
{
status: 200,
details: {
id: '1047848807775358976',
type: 'Default',
content: 'lol gn bro',
channel_id: '1024040173345984562',
...
...
...
> 'Read on `Message Objects` : https://discord.com/developers/docs/resources/channel#message-object'
}
Code 400
An error occurred that stopped execution.
{
status: 400
error: 'Cannot read ... (This can vary)'
}