BandaStation - Modules - TypesVar Details - Proc Details

help_ticket

Vars

admin_repliedHas the admin replied to this ticket yet?
closed_atThe time at which the ticket was closed
convert_cooldownPrevents convert spam
idUnique ID of the ticket
initiatorInitiator key name
initiator_clientIt's the person who ahelped/was bwoinked
initiator_keyInitiator key. More stable
linked_adminIt's admin who linked to current ticket
messagesCollection of all ticket messages
opened_atThe time at which the ticket was opened
stat_nameName used for stat panel
stateThe current state of the ticket
ticket_autoclose_timer_idID for the autoclose timer
ticket_counterStatic counter used for generating each ticket ID
ticket_typeCached ticket type datum instance
ticket_type_hiddenHidden type. Used for chat messages
ticket_type_idTicket type id. Used for sorting Admin/Mentor tickets.
writersList of all client keys who currently write to this ticket

Procs

convertConverts ticket to ticket type specified type_to_convert_to
get_boxed_message_classReturns boxed messaged class for this ticket
get_initiator_clientReturn actual client of initiator_client persistent client
get_text_span_classReturns boxed messaged class for this ticket
get_ticket_typeReturns ticket type datum instance
has_staff_accessChecks if the ticket can be converted by passed target
has_user_accessChecks if the ticket can be viewed and interacted by passed target
link_adminLinks passed admin to the ticket, if required permissions are present
send_creation_messageNotifies the staff about the new ticket, and sends a creation confirmation to the creator
set_ticket_type_idSets ticket_type_id and and updates ticket_type variable
type_to_convert_toReturns type this help ticket can be converted to
unlink_linked_adminUnlnks linked_admin from the ticket, start autoclosure timer and notifies responsible admins

Var Details

admin_replied

Has the admin replied to this ticket yet?

closed_at

The time at which the ticket was closed

convert_cooldown

Prevents convert spam

id

Unique ID of the ticket

initiator

Initiator key name

initiator_client

It's the person who ahelped/was bwoinked

initiator_key

Initiator key. More stable

linked_admin

It's admin who linked to current ticket

messages

Collection of all ticket messages

opened_at

The time at which the ticket was opened

stat_name

Name used for stat panel

state

The current state of the ticket

ticket_autoclose_timer_id

ID for the autoclose timer

ticket_counter

Static counter used for generating each ticket ID

ticket_type

Cached ticket type datum instance

ticket_type_hidden

Hidden type. Used for chat messages

ticket_type_id

Ticket type id. Used for sorting Admin/Mentor tickets.

writers

List of all client keys who currently write to this ticket

Proc Details

convert

Converts ticket to ticket type specified type_to_convert_to

get_boxed_message_class

Returns boxed messaged class for this ticket

get_initiator_client

Return actual client of initiator_client persistent client

get_text_span_class

Returns boxed messaged class for this ticket

get_ticket_type

Returns ticket type datum instance

has_staff_access

Checks if the ticket can be converted by passed target

has_user_access

Checks if the ticket can be viewed and interacted by passed target

Links passed admin to the ticket, if required permissions are present

send_creation_message

Notifies the staff about the new ticket, and sends a creation confirmation to the creator

set_ticket_type_id

Sets ticket_type_id and and updates ticket_type variable

type_to_convert_to

Returns type this help ticket can be converted to

Unlnks linked_admin from the ticket, start autoclosure timer and notifies responsible admins