Home Reference Source
import ArbitraryVoiceResponse from 'ghastly/src/command/responses/ArbitraryVoiceResponse.js'
public class | source

ArbitraryVoiceResponse

Extends:

ResponseVoiceResponse → ArbitraryVoiceResponse

Wrapper for arbitrary voice responses.

Constructor Summary

Public Constructor
public

constructor(context: Object, input: string, options: StreamOptions)

Constructor.

Inherited Summary

From class Response
private

The function handling the message response.

public

respond(): *

Executes the message response handler.

Public Constructors

public constructor(context: Object, input: string, options: StreamOptions) source

Constructor.

Override:

VoiceResponse#constructor

Params:

NameTypeAttributeDescription
context Object

The handler context.

input string

The arbitrary input.

options StreamOptions
  • optional
  • default: {}

The options for playing the stream.