#
async
static
createAdminChannels(guild, adminRole, everyoneRole) → {Promise.<{TextChannel, TextChannel}>}
Will create the admin channels with the correct roles.
Parameters:
Name |
Type |
Description |
guild |
Guild
|
|
adminRole |
Role
|
|
everyoneRole |
Role
|
|
View Source
classes/bot-guild.js, line 208
- {Admin Console, Admin Log Channel}
Promise.<{TextChannel, TextChannel}>
#
addStamp(roleId, stampNumber)
Adds a stamp to the stamp collection. Does not save the mongoose document!
Parameters:
Name |
Type |
Description |
roleId |
String
|
|
stampNumber |
Number
|
|
View Source
classes/bot-guild.js, line 438
#
async
setCommandStatus(client)
Will enable and disable the appropriate commands by looking at what is enabled in the botGuild.
Parameters:
Name |
Type |
Description |
client |
CommandoClient
|
|
View Source
classes/bot-guild.js, line 481
#
async
setUpAnnouncements(client, announcementChannelID)
Will set up the firebase announcements.
Parameters:
Name |
Type |
Description |
client |
CommandoClient
|
|
announcementChannelID |
String
|
|
View Source
classes/bot-guild.js, line 358
#
async
setUpReport(client, incomingReportChannelID) → {Promise.<BotGuild>}
Enables the report commands and sends the reports to the given channel.
Parameters:
Name |
Type |
Description |
client |
CommandoClient
|
|
incomingReportChannelID |
String
|
|
View Source
classes/bot-guild.js, line 451
#
async
setUpStamps(client, stampAmountopt, stampCollectionTimeopt, stampRoleIDsopt) → {Promise.<BotGuild>}
Creates the stamps roles and adds them to this BotGuild. If stamps roles are given
then no roles are created!
Parameters:
Name |
Type |
Attributes |
Default |
Description |
client |
CommandoClient
|
|
|
|
stampAmount |
Number
|
<optional>
|
0
|
amount of stamps to create |
stampCollectionTime |
Number
|
<optional>
|
60
|
time given to users to send password to get stamp |
stampRoleIDs |
Array.<String>
|
<optional>
|
|
current stamp roles to use |
View Source
classes/bot-guild.js, line 402