Members
Methods
(async) fetchBot(idopt, optionsopt) → {Bot}
Fetches a bot that is listed on Bots for Discord.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
string |
<optional> |
this.options.botID | The Discord ID of a bot to fetch from. |
options |
FetchOptions |
<optional> |
{} | Options to pass. |
Returns:
- Type
- Bot
(async) fetchBotsOfUser(id) → {Array.<string>}
Fetches the bot IDs of a user.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The Discord ID of a user to fetch owned bot IDs from. |
Returns:
- Type
- Array.<string>
(async) fetchUpvotes(idopt, botTokenopt) → {VoteContents}
Fetches a Bot's Upvotes.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
string |
<optional> |
this.options.botID | The Discord ID of a bot to fetch votes from. |
botToken |
string |
<optional> |
this.options.botToken | The bot's API token from Bots for Discord. |
Returns:
- Type
- VoteContents
(async) fetchUser(id, optionsopt) → {User}
Fetches a user on Bots for Discord.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
string | The Discord ID of a user to fetch from. | ||
options |
FetchOptions |
<optional> |
{} | Options to pass. |
Returns:
- Type
- User
(async) postCount(idopt, optionsopt) → {object}
Posts guild count for a bot.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
string | number | PostOptions |
<optional> |
this.options.botID | The ID of the Bot to post guild count of. * This can also be PostOptions if `this.options.botID` is defined. * This can also be a number for PostOptions#guildCount (Overrides options#guildCount if so.) |
options |
PostOptions | number |
<optional> |
{} | Options to pass. * This can also be a number for PostOptions#guildCount (Requires `this.options.botToken` be present) |
Returns:
- Type
- object