Skip to main content

onTicketOpen

An event that emits when someone creates a ticket! It will emit with all modes: button, dropdown or /ticket!

Parameters

ParameterTypeNotes
userdiscord.UserThe user that created the ticket
channeldiscord.TextChannelThe ticket channel
guilddiscord.GuildThe ticket server/guild
dateDateThe date of ticket creation
ticketdataTicket Data (status, option, claim data, ...)

Example

example.plugin.js
//log to console when someone creates a ticket!
events.onTicketOpen((user,channel,guild,date,ticketdata) => {
console.log("hello, "+user.username+" opened a ticket!")
})