BandaStation - Modules - TypesVar Details - Proc Details

ticket_manager

Vars

all_ticketsThe set of all tickets
emojisThe set of all available emojis

Procs

add_ticket_messageAdds message to ticket. Allows HTML tags from both sides and parses emoji Will send chat message about new ticket message to admin, if reply from ticket initiator and message to player if replies someone from admins
add_to_ticket_writersAdds user to ticket writers when he starts typing. Used for type indicator in ticket chat UI
client_loginAdds little notification to ticket chat about player reconnect
client_logoutAdds little notification to ticket chat about player disconnect
get_help_ticket_by_idReturns /datum/help_ticket by id from all_tickets
open_ticketChecking existing user ticket, and send message to it IF staff has written something
remove_from_ticket_writersRemoves user from ticket writers when he stops typing or sends message. Used for type indicator in ticket chat UI
send_chat_message_to_adminSend player ticket reply to admin, if he's online. And make some logs for other admins
send_chat_message_to_playerSend admin ticket reply to player, if he's online. And make some logs for other admins
set_ticket_stateChanges ticket state. Allowed new states: TICKET_OPEN, TICKET_CLOSED, TICKET_RESOLVED

Var Details

all_tickets

The set of all tickets

emojis

The set of all available emojis

Proc Details

add_ticket_message

Adds message to ticket. Allows HTML tags from both sides and parses emoji Will send chat message about new ticket message to admin, if reply from ticket initiator and message to player if replies someone from admins

add_to_ticket_writers

Adds user to ticket writers when he starts typing. Used for type indicator in ticket chat UI

client_login

Adds little notification to ticket chat about player reconnect

client_logout

Adds little notification to ticket chat about player disconnect

get_help_ticket_by_id

Returns /datum/help_ticket by id from all_tickets

open_ticket

Checking existing user ticket, and send message to it IF staff has written something

remove_from_ticket_writers

Removes user from ticket writers when he stops typing or sends message. Used for type indicator in ticket chat UI

send_chat_message_to_admin

Send player ticket reply to admin, if he's online. And make some logs for other admins

send_chat_message_to_player

Send admin ticket reply to player, if he's online. And make some logs for other admins

set_ticket_state

Changes ticket state. Allowed new states: TICKET_OPEN, TICKET_CLOSED, TICKET_RESOLVED