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

    Interface IMailboxManager

    interface IMailboxManager {
        usersTickets: Collection<string, UserTickets>;
        checkTickets(): void;
        closeTicket(ticketId: string): void;
        createTicket(
            content: TicketContent,
            guildId: string,
            maxOnGoingTicketsPerUser?: number,
        ): Ticket;
        replyToTicket(content: TicketContent, ticketId: string): void;
    }

    Implemented by

    Index

    Properties

    usersTickets: Collection<string, UserTickets>

    The opened tickets per users collection.

    MailboxManager

    Methods

    • Closes the provided ticket.

      Parameters

      • ticketId: string

      Returns void

      IMailboxManager

    • Creates a ticket based on the provided content.

      Parameters

      • content: TicketContent
      • guildId: string
      • OptionalmaxOnGoingTicketsPerUser: number

      Returns Ticket

      IMailboxManager