Interface SearchMessagesOptions

interface SearchMessagesOptions {
    authorIDs?: string | string[];
    channelIDs?: string | string[];
    commandID?: string;
    commandName?: string;
    content?: string;
    has?: MessageSearchHasFilter | MessageSearchHasFilter[];
    includeNSFW?: boolean;
    maxID?: string;
    mentions?: string | string[];
    minID?: string;
    offset?: number;
    pinned?: boolean;
    sortBy?: MessageSearchSortBy;
    sortOrder?: SearchSortOrder;
}

Properties

authorIDs?: string | string[]

Restrict results to messages sent by these users.

channelIDs?: string | string[]

Restrict results to these channels.

commandID?: string

Restrict results to messages created by this application command.

commandName?: string

Restrict results to messages created by this application command name.

content?: string

The content to search for.

Restrict results to messages containing these attachment/embed types.

includeNSFW?: boolean

Include results from NSFW channels.

maxID?: string

Search messages before this message ID.

mentions?: string | string[]

Search for messages mentioning these users.

minID?: string

Search messages after this message ID.

offset?: number

The offset into the search results.

pinned?: boolean

Restrict results to pinned messages.

The field to sort by.

sortOrder?: SearchSortOrder

The sort order.