Interface GetChannelPinsOptions<T>

interface GetChannelPinsOptions<T> {
    before?: string;
    limit?: number;
    filter?(pin): boolean | "break" | PromiseLike<boolean | "break">;
}

Type Parameters

Properties

Methods

Properties

before?: string

Get messages pinned before this ISO8601 timestamp.

limit?: number

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

Methods

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

    Parameters

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