A ticket entity.

Export

Ticket

Constructors

Properties

createdAt: number

The creation date of the ticket.

Memberof

Ticket

createdBy: User

The author of the ticket.

Memberof

Ticket

guildId: string

The guild in which the ticket has been created.

Memberof

Ticket

id: string

The id of the ticket.

Memberof

Ticket

messages: TicketContent[]

The different messages involved in the ticket.

Memberof

Ticket

Accessors

  • get closedAt(): null | number
  • Returns a datetime of when the ticket should get closed.

    Returns null | number

    Memberof

    Ticket

  • get threadId(): null | string
  • Returns the thread of the ticket, if any.

    Returns null | string

    Memberof

    Ticket

Methods

  • Checks if the ticket is outdated or not.

    Parameters

    • closeAfterInMilliseconds: number

    Returns boolean

    Memberof

    Ticket

  • Sets the ticket's thread channel.

    Parameters

    • threadId: string

    Returns void

    Memberof

    Ticket