InterfaceCreateFilterParams

interface CreateFilterParams {
    context: null | readonly mastodon.v2.FilterContext[];
    expiresIn?: null | number;
    filterAction?: null | FilterAction;
    keywordsAttributes?: {
        keyword?: null | string;
        wholeWord?: null | boolean;
    }[];
    title: string;
}

Properties

context: null | readonly mastodon.v2.FilterContext[]

Array of String. Where the filter should be applied. Specify at least one of home, notifications, public, thread, account.

expiresIn?: null | number

Integer. How many seconds from now should the filter expire?

filterAction?: null | FilterAction

String. The policy to be applied when the filter is matched. Specify warn or hide.

keywordsAttributes?: {
    keyword?: null | string;
    wholeWord?: null | boolean;
}[]

Type declaration

  • Optional Readonlykeyword?: null | string

    String. A keyword to be added to the newly-created filter group.

  • Optional ReadonlywholeWord?: null | boolean

    Boolean. Whether the keyword should consider word boundaries.

title: string

String. The name of the filter group.