Constructor
# new Cave(caveOptions, botGuild, guild)
Parameters:
Name | Type | Description |
---|---|---|
caveOptions |
CaveOptions | |
botGuild |
BotGuildModel | |
guild |
Guild |
Members
Methods
# async addSubRoleCallback(channel, userId) → {Promise.<Role>}
Prompts a user for information to create a new sub role for this cave.
Parameters:
Name | Type | Description |
---|---|---|
channel |
TextChannel | |
userId |
String |
Promise.<Role>
# archive(archiveCategory)
Removes private channels and archives the public channels.
It also deletes the ticket rooms.
Parameters:
Name | Type | Description |
---|---|---|
archiveCategory |
CategoryChannel |
# delete()
Deletes all the tickets rooms, public channels and private channels.
# async deleteTicketChannelsCallback(channel, userId)
Will prompt the user for more information to delete some, all, or a few tickets.
Parameters:
Name | Type | Description |
---|---|---|
channel |
TextChannel | |
userId |
String |
# async includeExcludeCallback(channel, userId)
Will prompt the user for channel numbers to include or exclude from the garbage collector.
Parameters:
Name | Type | Description |
---|---|---|
channel |
TextChannel | |
userId |
String |