Renegade Global Ban API Reference - S0ftwareUpd8/Renegade GitHub Wiki
Welcome to the Renegade Global Ban Wiki.
You can get users from the API and enforce our bans through your bot. All requests require headers, which is authorization. You can include this by doing
({
// some epic api request,
headers: {
authorization: 'rng YOURTOKENHERE' // replace YOURTOKENHERE with your token
}
});
Obtaining a token
In order to obtain a token, please join our official server and send a message in the #support channel.
API Reference
https://beta.renegadebot.tk/api
Base URL: GET
Method: /globalbans/{user.id}
URL: Checks if the user is on the ban list.
Name | Type | Description |
---|---|---|
username | string | The username and tag of the user |
id | int | The snowflake of the user |
reason | string | The reason for the global ban |
appealable | bool | Whether the ban can be appealed |
Example
{ username: 'S0ftwareUpd8#9999',
id: 425023068004548618,
reason: 'Spam',
appealable: true }
POST
Method: /globalbans/add/{user.id}
URL: Adds a user to the ban list.
If you do not have an Administrative token, this will return 401
Data:
Name | Type | Description |
---|---|---|
username | string | The username and tag of the user |
id | int | The snowflake of the user |
reason | string | The reason the user is being globally banned |
proof | string | A link to proof |
Returns: success
or error
Example response:
{ done: true }