start large bot stuff

This commit is contained in:
Skillz
2020-10-26 11:16:26 -04:00
parent 7635c98af1
commit be9b78b326
3 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export interface IdentifyPayload {
shard: [number, number];
}
export const createClient = async (data: ClientOptions) => {
export async function createClient(data: ClientOptions) {
if (data.eventHandlers) eventHandlers = data.eventHandlers;
authorization = `Bot ${data.token}`;
+20
View File
@@ -0,0 +1,20 @@
import { ClientOptions } from "../types/options.ts";
/**
* This function should be used only by bot developers whose bots are in over 25,000 servers.
* Please be aware if you are a beginner developer using this, things will not work as per the guides. This is for advanced developers only!
*
* Advanced Devs: This function will allow you to have an insane amount of customization potential as when you get to large bots you need to be able to optimize every tiny detail to make you bot work the way you need.
*/
export async function startHugeBot(data: HugeBotOptions) {
}
export interface HugeBotOptions extends ClientOptions {
/** This can be used to distribute your bot across different servers. For example, if you wanted 1 million shards per server you could control it using this. */
shards: [number, number];
/** This can be used to forward the ws handling to a proxy. */
wsURL?: string;
/** This can be used to forward the REST handling to a proxy. */
restURL?: string;
}
+1
View File
@@ -31,6 +31,7 @@ export interface Fulfilled_Client_Options {
export interface ClientOptions {
token: string;
/** @deprecated Will be removed in next major version! */
properties?: Properties;
compress?: boolean;
intents: Intents[];