UNPKG

1.59 kBTypeScriptView Raw
1import DiscordJSClientFallback from '../types/discord.js';
2declare type apiKeysObject = any;
3/**
4 * This function is for automated use with discord.js
5 * @param discordClient Client via wich your code is connected to Discord
6 * @param apiKeys A JSON object formatted like: {"botlist name":"API Keys for that list", etc.}
7 * @param repeatInterval Number of minutes until you want to post again, leave out to use 30
8 */
9export declare function handle(discordClient: DiscordJSClientFallback, apiKeys: apiKeysObject, repeatInterval: number): Promise<void>;
10/**
11 * For when you don't use discord.js or just want to post to manual times
12 * @param guildCount Integer value of guilds your bot is serving
13 * @param botID Snowflake of the ID the user your bot is using
14 * @param apiKeys A JSON object formatted like: {"botlist name":"API Keys for that list", etc.}
15 * @param shardID (optional) The shard ID, which will be used to identify the
16 * shards valid for posting
17 * (and for super efficient posting with BLAPIs own distributer when not using botBlock)
18 * @param shardCount (optional) The number of shards the bot has, which is posted to the lists
19 * @param shards (optional) An array of guild counts of each single shard
20 * (this should be a complete list, and only a single shard will post it)
21 */
22export declare function manualPost(guildCount: number, botID: string, apiKeys: apiKeysObject, shardID: number, shardCount: number, shards: Array<number>): void;
23export declare function setLogging(setLog: boolean): void;
24export declare function setBotblock(useBotblock: boolean): void;
25export {};