Class ServerlessDiscordRouter

Handles Discord interactions.

Param

The commands to handle.

Param

The authorization handler.

Returns

ServerlessDiscordRouter

Hierarchy

Constructors

Properties

apiClient?: DiscordApiClient
applicationId: string
authHandler?: AuthHandler
commands: Command[]
logHandler: Logger<LoggerOptions>

Methods

  • Parameters

    • __namedParameters: {
          interaction: unknown;
          requestHeaders: unknown;
      }
      • interaction: unknown
      • requestHeaders: unknown

    Returns Promise<DiscordInteractionResponse>

Generated using TypeDoc