UNPKG

blapi

Version:

BLAPI is a package to handle posting your discord stats to botlists. It's intended to be used with discord.js, though you can also manually post your stats.

13 lines (12 loc) 463 B
import c from 'centra'; export type UserLogger = { info: (msg: string) => void; warn: (msg: string) => void; error: (msg: string) => void; }; /** Custom post function based on centra */ export declare function post(apiPath: string, apiKey: string, sendObj: object, logger: UserLogger): Promise<c.Response | { error: Error; }>; /** Custom get function based on centra */ export declare function get<T>(url: string, logger: UserLogger): Promise<T>;