2.5.2 • Published 4 years ago
discordservices.jstest v2.5.2
Methods
Logging In
Param | Type | Default | Description |
---|---|---|---|
options | Object | Options for client | |
options.id | string | "" | Discord bot id |
options.token | string | "" | DiscordServices token |
import { Client } from "discordservices.js"; // ES6
// or
const { Client } = require("discordservices.js"); // ES5
const ds = new Client({
id,
token
});
Updating Stats
Param | Type | Description |
---|---|---|
stats | Object | Stats for update |
stats.servers | number | The number of servers the bot |
stats.shards | number | The number of shards the bot |
Posting News
Param | Type | Default | Description |
---|---|---|---|
news | Object | News for post | |
news.title | string | "" | News title |
news.content | string | "" | News content |
news.error | boolean | false | Is error news |
ds.postNews({
title,
content
}); // => Promise
Updating Commands †
Param | Type | Description |
---|---|---|
commands | Object[] | Commands for update |
commands.command | string | Command name |
commands.desc | string | Command description |
commands.category | string | Command category |
Events
If you have any questions regarding use of this library, feel free to contact the developer.