@hunteroi/discord-mailbox
    Preparing search index...

    Class Ticket

    A ticket entity.

    Ticket

    Index

    Constructors

    Properties

    createdAt: number

    The creation date of the ticket.

    Ticket

    createdBy: User

    The author of the ticket.

    Ticket

    guildId: string

    The guild in which the ticket has been created.

    Ticket

    id: string

    The id of the ticket.

    Ticket

    messages: TicketContent[]

    The different messages involved in the ticket.

    Ticket

    Accessors

    • get closedAt(): number | null

      Returns a datetime of when the ticket should get closed.

      Returns number | null

      Ticket

    • get threadId(): string | null

      Returns the thread of the ticket, if any.

      Returns string | null

      Ticket

    Methods

    • Checks if the ticket is outdated or not.

      Parameters

      • closeAfterInMilliseconds: number

      Returns boolean

      Ticket

    • Sets the ticket's thread channel.

      Parameters

      • threadId: string

      Returns void

      Ticket