Class

InitBot

InitBot()

The InitBot command initializes the bot on the guild. It will prompt the user for information needed to set up the bot. It is only usable by server administrators. It can only be run once.

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

View Source commands/essentials/init-bot.js, line 301

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

View Source commands/essentials/init-bot.js, line 271

Promise.<Array.<TypeInfo>>

# async run(message)

Parameters:
Name Type Description
message Message

View Source commands/essentials/init-bot.js, line 31