Interface GetChannelMessagesOptions<T>

Type Parameters

Hierarchy

  • GetChannelMessagesOptions

Methods

Properties

Methods

  • A function used to reject certain messages. If "break" is returned, further iteration of messages will stop and the previously allowed messages will be returned.

    Parameters

    • message: Message<T>

      The message to filter.

    Returns boolean | "break" | PromiseLike<boolean | "break">

Properties

after?: string

Get messages after this message ID. IDs don't need to be valid, an ID can be generated for any timestamp via Base#generateID.

around?: string

Get messages around this message ID. IDs don't need to be valid, an ID can be generated for any timestamp via Base#generateID.

before?: string

Get messages before this message ID. IDs don't need to be valid, an ID can be generated for any timestamp via Base#generateID.

limit?: number

The maximum amount of messages to get. Defaults to 100. Use Infinity if you wish to get as many messages as possible.