discord-bans
Get a list of banned users from bans.discordlist.net
Installation
npm install discord-bans
Usage
Get your API token from bans.discordlist.net/mytoken.
const DiscordBans = const bans = 'InflfYOe3Z' bans bans
API
DiscordBans(token, minRefreshInterval)
const discordBans = 'InflfYOe3Z' 1000 * 30
token
API token obtained from bans.discordlist.net/mytoken.
maxRefreshInterval
Minimum amount of time in ms between refreshes of the ID list. Default 1 minute.
The list is only refreshed if a method is called and the cache doesn't exist or is older than the maxRefreshInterval
.
getList()
Returns a promise for an array of banned user IDs.
isBanned(userId)
Returns a promise for a boolean to indicate weather the user is on the list or not.
License
MIT