Extends
- Command
Methods
# async askOrCreate(roleName, channel, userId, guild, color) → {Promise.<Role>}
Will ask the user if a role has been created, if so, then prompt it, else then create it.
Parameters:
Name | Type | Description |
---|---|---|
roleName |
String | the role name |
channel |
TextChannel | the text channel were to prompt |
userId |
Snowflake | the user id to prompt to |
guild |
Guild | the current guild |
color |
ColorResolvable | the role color |
Promise.<Role>
# async getVerificationTypes(channel, userId) → {Promise.<Array.<TypeInfo>>}
Prompts the user for a verification type and if they want to add more. Will call itself if true
for a recursive call.
Parameters:
Name | Type | Description |
---|---|---|
channel |
TextChannel | |
userId |
String |
Promise.<Array.<TypeInfo>>