interface LoggingOptions {
    generateFilename: ((ticket) => string);
    generateLogEntry: ((ticketContent) => string);
    generateMessage: ((ticket) => string | BaseMessageOptions);
    logChannel: string;
    sendInThread?: boolean;
    showSenderNames: boolean;
}

Properties

generateFilename: ((ticket) => string)

A function to generate a filename based on a provided ticket.

Type declaration

    • (ticket): string
    • Parameters

      Returns string

generateLogEntry: ((ticketContent) => string)

A function to generate a log entry based on a provided ticket's content.

Type declaration

    • (ticketContent): string
    • Parameters

      Returns string

generateMessage: ((ticket) => string | BaseMessageOptions)

A function to generate a message based on a provided ticket.

Type declaration

    • (ticket): string | BaseMessageOptions
    • Parameters

      Returns string | BaseMessageOptions

logChannel: string

The guild channel in which the logs are sent.

sendInThread?: boolean

Whether the logs should be sent in the thread or not.

showSenderNames: boolean

Whether the sender names should be displayed or not.