Constructor
# new Ticket(hackers, question, requesterRole, ticketNumber, ticketManager)
Parameters:
Name | Type | Description |
---|---|---|
hackers |
Collection.<String, User> | |
question |
String | |
requesterRole |
Role | |
ticketNumber |
Number | |
ticketManager |
TicketManager |
Members
String
# static STATUS
The possible status of the ticket.
Properties:
Name | Type | Description |
---|---|---|
new |
String | Ticket is open for someone to take. |
closed |
String | Ticket has been dealt with and is closed. |
taken |
String | Ticket is being handled by someone. |
TicketConsoles
# consoles
All the consoles sent out.
GroupLeader -> sent via DM to leader, they can cancel the ticket from there
ticketManager -> sent to the helper channel
ticketRoom -> sent to the ticket room once created for users to leave
Methods
# async basicTakenStatusCallback(helper)
Callback for status change to taken when ticket manager is NOT in advanced mode.
Parameters:
Name | Type | Description |
---|---|---|
helper |
User | the user who is taking the ticket |
# async includeExclude(exclude)
This function is called by the ticket's Cave class to change its status between include/exclude for automatic garbage collection.
If a previously excluded ticket is re-included, the bot starts listening for inactivity as well.
Parameters:
Name | Type | Description |
---|---|---|
exclude |
Boolean | true if ticket is now excluded from garbage collection, false if not |
# async setStatus(status, reasonopt, useropt)
Change the status of this ticket.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
status |
String | one of Ticket.STATUS | |
reason |
String |
<optional> |
the reason for the change |
user |
User |
<optional> |
user involved with the status change |