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

    Type Alias PerGuildMailboxOptions

    PerGuildMailboxOptions: {
        embedOptions?: EmbedOptions;
        generateClosedChannelName: (
            ticket: Ticket,
            guild: Guild,
            thread?: ThreadChannel,
        ) => string;
        generateMessageTitle: (ticket: Ticket, guild: Guild) => string;
        generateReplyMessage: (ticket: Ticket, guild: Guild) => string;
        generateTooMuchTicketsMessage: (user: User, guild: Guild) => string;
        loggingOptions?: LoggingOptions;
        mailboxChannel: Snowflake;
        maxOnGoingTicketsPerUser: number;
        modalOptions: ModalOptions;
        threadOptions?: ThreadOptions;
    } & InteractionOptions

    Type Declaration

    • OptionalembedOptions?: EmbedOptions

      The embed options. Do not provide if you do not want to use embeds.

    • generateClosedChannelName: (ticket: Ticket, guild: Guild, thread?: ThreadChannel) => string

      A function to build the ticket's channel name when the ticket is closed.

    • generateMessageTitle: (ticket: Ticket, guild: Guild) => string

      A function to build a ticket's title from the ticket object itself.

    • generateReplyMessage: (ticket: Ticket, guild: Guild) => string

      A function to build the reply message.

    • generateTooMuchTicketsMessage: (user: User, guild: Guild) => string

      A function to build the message sent to a user when they have too much ongoing tickets.

    • OptionalloggingOptions?: LoggingOptions

      The logging options. Do not provide if you do not want to log.

    • mailboxChannel: Snowflake

      The mailbox channel in which the content is sent (or from which the threads are created).

    • maxOnGoingTicketsPerUser: number

      The maximum number of ongoing tickets per user for this guild.

    • modalOptions: ModalOptions

      The settings for the modal forms.

    • OptionalthreadOptions?: ThreadOptions

      The thread options. Do not provide if you do not want to use threads.