ChannelPrompt

ChannelPrompt

Holds different TextChannel prompts.

Constructor

# new ChannelPrompt()

Methods

# (async, static) multi(promptInfo, amountopt) → {Promise.<Collection.<String, TextChannel>>}

Prompts the user for multiple text channels. Can be set to a specific amount.
Parameters:
Name Type Attributes Default Description
promptInfo PromptInfo
amount Number <optional>
Infinity amount of channels to prompt for
Throws:
  • if the user does not respond within the given time.
    Type
    TimeOutError
  • if the user cancels the prompt.
    Type
    CancelError
Returns:
Type
Promise.<Collection.<String, TextChannel>>

# (async, static) single(promptInfo) → {Promise.<TextChannel>}

Prompts the user for a text channel.
Parameters:
Name Type Description
promptInfo PromptInfo
Throws:
  • if the user does not respond within the given time.
    Type
    TimeOutError
  • if the user cancels the prompt.
    Type
    CancelError
Returns:
Type
Promise.<TextChannel>