Class VoiceMethods

Methods for interacting with voice stuff via rest

Hierarchy

  • VoiceMethods

Constructors

Methods

Properties

Constructors

  • Create a new Voice Method Handler

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

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

    Parameters

    • requestHandler: RequestHandler

      request handler that calls the rest api

    Returns VoiceMethods

Methods

  • Get currently available voice regions that can be used when creating servers

    Returns

    Array of voice region objects

    Example

    const client = new SnowTransfer("TOKEN")
    const regions = await client.voice.getVoiceRegions()

    Returns Promise<VoiceRegion[]>

Properties

requestHandler: RequestHandler

Generated using TypeDoc