Discord
The Discord badge requires the SERVER ID in order access the Discord JSON API.
The SERVER ID can be located in the url of the channel that the badge is accessing.
 
To use the Discord badge a Discord server admin must enable the widget setting on the server.
| Path Parameters | 
|---|
| serverIdstring —  REQUIREDExample:
 | 
| Query Parameters | 
|---|
| stylestringPossible values: [ If not specified, the default style for this badge is "flat". Example:
 | 
| logostringIcon slug from simple-icons. You can click the icon title on simple-icons to copy the slug or they can be found in the slugs.md file in the simple-icons repository. Further info. Example:
 | 
| logoColorstringThe color of the logo (hex, rgb, rgba, hsl, hsla and css named colors supported). Supported for simple-icons logos but not for custom logos. Example:
 | 
| logoSizestringMake icons adaptively resize by setting  Example:
 | 
| labelstringOverride the default left-hand-side text (URL-Encoding needed for spaces or special characters!) Example:
 | 
| labelColorstringBackground color of the left part (hex, rgb, rgba, hsl, hsla and css named colors supported). Example:
 | 
| colorstringBackground color of the right part (hex, rgb, rgba, hsl, hsla and css named colors supported). Example:
 | 
| cacheSecondsstringHTTP cache lifetime (rules are applied to infer a default value on a per-badge basis, any values specified below the default will be ignored). Example:
 | 
| linkstring[]Specify what clicking on the left/right of a badge should do. Note that this only works when integrating your badge in an  |