dbots
Version:
Discord bot list poster and stats retriever
38 lines (37 loc) • 1.41 kB
TypeScript
import { Service, ServicePostOptions } from '../Service';
import { IDResolvable } from '../../Utils/Util';
import { Query } from '../../Utils/Constants';
/**
* Represents the Bots On Discord service.
* @see https://bots.ondiscord.xyz/info/api
*/
export default class BotsOnDiscord 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>>;
/**
* Checks whether or not a user has reviewed a bot.
* @param id The bot's ID
* @param userId The user's ID
*/
checkReview(id: IDResolvable, userId: IDResolvable): Promise<import("axios").AxiosResponse<any, any>>;
/**
* Gets the widget URL for this bot.
* @param id The bot's ID
* @param query The query string that will be used in the request
*/
getWidgetURL(id: IDResolvable, query?: Query): string;
}