Interface PurgeOptions<T>

Type Parameters

Hierarchy

  • PurgeOptions

Properties

Methods

Properties

after?: string

The ID of the message to purge after.

around?: string

The ID of the message to purge around.

before?: string

The ID of the message to purge before.

limit: number

The limit of messages to purge.

reason?: string

The reason for purging the messages.

Methods

  • The filter to apply to messages to decide if they should be purged.

    Parameters

    • message: Message<T>

      The message to filter.

    Returns boolean | PromiseLike<boolean>