Constructor
# new MemberPrompt()
Methods
# (async, static) multi(promptInfo, amountopt) → {Promise.<Collection.<String, GuildMember>>}
Prompts the user for multiple members, can set exact amount.
Will re-prompt if amount is not equal to given amount.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
promptInfo |
PromptInfo | |||
amount |
Number |
<optional> |
Infinity | amount of members 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, GuildMember>>
# (async, static) single(promptInfo) → {Promise.<GuildMember>}
Prompts the user for a single member mention.
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.<GuildMember>