Options
All
  • Public
  • Public/Protected
  • All
Menu

Methods for interacting with bot specific endpoints

Hierarchy

  • BotMethods

Index

Constructors

  • Create a new Bot Method Handler

    Usually SnowTransfer creates a method handler for you, this is here for completion

    You can access the methods listed via client.bot.method, where client is an initialized SnowTransfer instance

    Parameters

    Returns <internal>.BotMethods

Properties

requestHandler: <internal>.RequestHandler

Methods

  • getGateway(): Promise<{ url: string }>
  • Get the gateway url to connect to and a recommended amount of shards to use

    example

    const client = new SnowTransfer('TOKEN'); const result = await client.bot.getGateway(); // result should be something like { url: "wss://gateway.discord.gg", shards: 1, session_start_limit: { total: 1000, remaining: 999, reset_after: 14400000, max_concurrency: 1 } }

    Returns Promise<{ session_start_limit: <internal>.SessionStartLimit; shards: number; url: string }>

Generated using TypeDoc