FetchChannelThreadsOptions
typedef · Source
Discord.js self-bot specific options field for fetching active threads. Type: Object
Properties
archived
optional
archived: boolean
Whether to fetch archived threads (default is false)
sortBy
optional
sortBy: string
The order in which the threads should be fetched in (default is last_message_time)
sortOrder
optional
sortOrder: string
How the threads should be ordered (default is desc)
limit
optional
limit: number
The maximum number of threads to return (default is 25)
offset
optional
offset: number
The number of threads to offset fetching (useful when making multiple fetches) (default is 0)