guild-id - ID of the guild to be fetched [Snowflake](Required)
role - ID of the role to be fetched [Snowflake](Optional)
Endpoint URL Parameters
simple - Retrieves a simpler set of data [Boolean] (Optional)
If no role was specified, it will grab all data and retrieve an Array, otherwise it will grab the one specified and retrieve an Object.
This will affect how to grab your data!
Examples:
Data API version required. Must replace <version> with either release or beta.
Bot Designer for Discord
Example usage of /guild/roles endpoint using BDFD
$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpAddHeader[bot-token;<YOUR-BOT-TOKEN>]
$httpAddHeader[guild-id;1064098700307218463]
$httpAddHeader[role;1064098700307218463] $c[Optional Header]
$httpGet[https://bdfddata.rickyjs.xyz/<version>/guild/roles]
$httpResult OR $httpResult[details]
OR
$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpAddHeader[bot-token;<YOUR-BOT-TOKEN>]
$httpAddHeader[guild-id;1064098700307218463]
$c[Header 'role' cannot be used when simple = true!]
$httpGet[https://bdfddata.rickyjs.xyz/<version>/guild/roles?simple=true]
$httpResult OR $httpResult[details]
Discord.js
Example usage of /guild/roles endpoint using Discord.js