/tg/ Station 13 - Modules - TypesVar Details - Proc Details

Adminhelp Ticket

Vars

closed_atThe time at which the ticket was closed
heard_by_no_adminsIf any admins were online when the ticket was initialized
idUnique ID of the ticket
initiatorSemi-misnomer, it's the person who ahelped/was bwoinked
initiator_ckeyThe ckey of the initiator
initiator_key_nameThe key name of the initiator
nameThe current name of the ticket
opened_atThe time at which the ticket was opened
opening_respondersThe list of clients currently responding to the opening ticket before it gets a response
player_interactionsList of player interactions
statclickStatclick holder for the ticket
stateThe current state of the ticket
ticket_counterStatic counter used for generating each ticket ID
ticket_interactionsThe collection of interactions with this ticket. Use AddInteraction() or, preferably, admin_ticket_log()
webhook_sentWhether this ahelp has sent a webhook or not, and what type

Procs

NewCall this on its own to create a ticket, don't manually assign current_ticket
ticket_statusRenders the current status of the ticket into a displayable string

Var Details

closed_at

The time at which the ticket was closed

heard_by_no_admins

If any admins were online when the ticket was initialized

id

Unique ID of the ticket

initiator

Semi-misnomer, it's the person who ahelped/was bwoinked

initiator_ckey

The ckey of the initiator

initiator_key_name

The key name of the initiator

name

The current name of the ticket

opened_at

The time at which the ticket was opened

opening_responders

The list of clients currently responding to the opening ticket before it gets a response

player_interactions

List of player interactions

statclick

Statclick holder for the ticket

state

The current state of the ticket

ticket_counter

Static counter used for generating each ticket ID

ticket_interactions

The collection of interactions with this ticket. Use AddInteraction() or, preferably, admin_ticket_log()

webhook_sent

Whether this ahelp has sent a webhook or not, and what type

Proc Details

New

Call this on its own to create a ticket, don't manually assign current_ticket

Arguments:

ticket_status

Renders the current status of the ticket into a displayable string