Preview environment

interface FetchMessagesOptions

export interface FetchMessagesOptions

Options used to fetch multiple messages. The before, after, and around parameters are mutually exclusive.

optional
after? : Snowflake

Consider only messages after this id

optional
around? : Snowflake

Consider only messages around this id

optional
before? : Snowflake

Consider only messages before this id

optional
cache? : boolean

Whether to cache the fetched messages

optional
limit? : number

The maximum number of messages to return