UNPKG

dbots

Version:

Discord bot list poster and stats retriever

57 lines (56 loc) 2.09 kB
import { Service, ServicePostOptions } from '../Service'; import { IDResolvable } from '../../Utils/Util'; import { Query } from '../../Utils/Constants'; /** * Represents the Discords.com service (formerly Bots For Discord). * @see https://docs.discords.com/ */ export default class DiscordsCom extends Service { /** The values that can be used to select the service. */ static get aliases(): string[]; /** The logo URL. */ static get logoURL(): string; /** Service's name. */ static get serviceName(): string; /** The website URL. */ static get websiteURL(): string; /** The base URL of the service's API. */ static get baseURL(): string; /** * Posts statistics to this service. * <warn>Shard data posting is not supported for this service.</warn> * @param options The options of the request. */ static post(options: ServicePostOptions): Promise<import("axios").AxiosResponse<any, any>>; /** * Gets the bot listed on this service. * @param id The bot's ID. */ getBot(id: IDResolvable): Promise<import("axios").AxiosResponse<any, any>>; /** * Gets the list of people who voted a bot. * @param id The bot's ID. */ getBotVotes(id: IDResolvable): Promise<import("axios").AxiosResponse<any, any>>; /** * Gets the list of people who voted a bot in the last 12 hours. * @param id The bot's ID. */ getBotVotes12h(id: IDResolvable): Promise<import("axios").AxiosResponse<any, any>>; /** * Gets the user listed on this service. * @param id The user's ID. */ getUser(id: IDResolvable): Promise<import("axios").AxiosResponse<any, any>>; /** * Gets the user's bots listed for this service. * @param id The user's ID. */ getUserBots(id: IDResolvable): Promise<import("axios").AxiosResponse<any, any>>; /** * Gets the widget URL for this bot. * @param id The bot's ID. * @param query The query that will be used in the request. */ getWidgetURL(id: IDResolvable, query?: Query): string; }