Interface MessageSearchResults<T>

interface MessageSearchResults<T> {
    analyticsID?: string;
    channels?: AnyGuildChannelWithoutThreads[];
    documentsIndexed?: number;
    doingDeepHistoricalIndex?: boolean;
    members?: ThreadMember[];
    messages: Message<T>[][];
    threads?: AnyThreadChannel[];
    totalResults: number;
}

Type Parameters

Properties

analyticsID?: string

The search analytics ID returned by Discord, if present.

The channels that contain the returned messages, if included.

documentsIndexed?: number

The number of documents that have been indexed during the current indexing operation, if any.

doingDeepHistoricalIndex?: boolean

Whether the guild is undergoing a deep historical indexing operation.

members?: ThreadMember[]

Thread members for returned threads, if included.

messages: Message<T>[][]

The messages that matched the query. Discord returns this as nested arrays for search-context compatibility.

threads?: AnyThreadChannel[]

Threads that contain the returned messages, if included.

totalResults: number

The total number of results that match the query.