$isTicket

Checks whether the current or specified channel is a ticket or not.

Info

“true” means the channel is a ticket, “false” means it isn’t.

Syntax

$isTicket[(Channel ID)]

Info

This function uses the channel name to determine whether it is a ticket or not. If the channel name contains ticket word, the function will return true.

Parameters

  • Channel ID (Type: Snowflake || Flag: Optional): The channel to check. (Defaults to the current channel)

Example

$nomention
$onlyIf[$isTicket[]==true;❌ This command can only be used in a ticket!]
This is a ticket!
!example ❌ This command can only be used in a ticket! !example This is a ticket!

Tip

To create a ticket, use the $newTicket[] function.