2.0.0-alpha.0 • Published 2 years ago

discloud-api v2.0.0-alpha.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Discloud-API

This is the official NPM Package of Discloud API. Este é o pacote NPM oficial para a API da Discloud.

Contribuintes são bem-vindos. ❤️ Contributors are welcome. ❤️

BUILD NPM_DOWNLOADS NPM_LICENSE NPM_VERSION PULL_REQUESTS

NPM

How to Use

...
const api = new DiscloudAPI('Your Token')

Functions

userStatus() ⇒ Promise.<(UserStatus|void)>

Get status of user.

Kind: global function Author: GardZock

Example

...
const data = await <(DiscloudAPI)>.userStatus()
//Returns the user data.

get(bot_id) ⇒ Promise.<(GetBot|void)>

Get data of a bot.

Kind: global function Author: GardZock

ParamTypeDescription
bot_idstringID of Bot

Example

...
const bot = await <(DiscloudAPI)>.bot.get('bot id')
//Returns the bot data.

logs(bot_id) ⇒ Promise.<(BotLogs|void)>

Get log of a bot.

Kind: global function Author: GardZock

ParamTypeDescription
bot_idstringID of Bot

Example

...
const logs = await <(DiscloudAPI)>.bot.logs('bot id')
//Returns the logs of bot.

restart(bot_id) ⇒ Promise.<(BotRestart|void)>

Restart the bot.

Kind: global function Author: GardZock

ParamTypeDescription
bot_idstringID of Bot

Example

...
const restart = await <(DiscloudAPI)>.bot.restart('bot id')
//Returns a message if sucess, if not return a error.
2.0.0-alpha.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago