BDFDiscordData
Search
K

/repeat

This endpoint will require a POST request.

Endpoint Headers:

  • apikey - Your Api Auth Key [String] (Required)

Endpoint Body Parameters

  • code - code to repeat [String] (Required)
  • time - amount of times to repeat [Integer] (Required)

Examples:

Data API version required. Must replace <version> with either release or beta.
Bot Designer for Discord
Example usage of /repeat endpoint using BDFD
$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpPost[https://bdfddata.rickyjs.xyz/<version>/repeat;{
code: 'test',
time: 10
}]
$httpResult OR $httpResult[details]
Discord.js
Example usage of /repeat endpoint using Discord.js
const axios = require('axios');
(async () => {
return await axios.post('https://bdfddata.rickyjs.xyz/<version>/repeat',
{ code: 'test',
time: 10
}, {
headers: {
'apikey': <YOUR-API-KEY>,
}
}).then(res=>res.data)
})()

Possible Responses (Codes)

Code 200
API succeeded and details were fetched.
{
status: 200,
details: 'testtesttesttesttesttesttesttesttesttest'
}}
Code 400
An error occurred that stopped execution.
{
status: 400
error: 'Cannot read ... (This can vary)'
}