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

Adminhelp Ticket

Vars

admins_involvedList of admin ckeys that are involved, like through responding
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
player_repliedHas the player replied to this ticket yet?
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
reply_to_admins_notificationSends a message to the player that they are replying to admins.
ticket_statusRenders the current status of the ticket into a displayable string

Var Details

admins_involved

List of admin ckeys that are involved, like through responding

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

player_replied

Has the player replied to this ticket yet?

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:

reply_to_admins_notification

Sends a message to the player that they are replying to admins.

ticket_status

Renders the current status of the ticket into a displayable string