0.0.3 • Published 4 years ago

@darkenlight_mage/gp-api v0.0.3

Weekly downloads
5
License
MIT
Repository
-
Last release
4 years ago

Global Protector API

This is the official API from Global Protector Discord Bot team! With this API, you can connect to the banlist of the bot!

WARNINNG

This API is still under development, and it may have bugs. There are some problems with the connection to the server, but it will be solved soon.

Instalation

To install, just use

npm install @darkenlight_mage/gp-api

Usage:

Login:

const gp = require('gp-api')
gp.login(key, secret)

Get your API keys in our discord server: https://discord.gg/fKQbFra

Check connection

const gp = require('gp-api')
gp.checkcon()

Check a ban of an user

const gp = require('gp-api')
gp.check(userid)

Request a ban

const gp = require('gp-api')
gp.ban(userid, reason, evidence)

Request an unban

const gp = require('gp-api')
gp.unban(userid, reason)

Request a ban edit

const gp = require('gp-api')
gp.editban(userid, toedit, evidence) //toedit: reason|evidence

Check the requests you have made, and their status.

const gp = require('gp-api')
gp.requests()