Interface OnePlugin

interface OnePlugin {
    author?: string;
    defaultState: Record<string, any>;
    name: string;
    permissions: (PluginFilterEvent | SendType)[];
    uid: string;
    url?: string;
    version: string;
    destroy?(): void;
    filterComment?(comment, service, userData): Promise<false | Comment>;
    filterSpeech?(text, userData, config): Promise<string | false>;
    init?(api, initialData): void;
    request?(req): Promise<PluginResponse>;
    subscribe?(type, ...args): void;
    [key: string]: any;
}

Indexable

[key: string]: any

Properties

author?: string
defaultState: Record<string, any>
name: string
permissions: (PluginFilterEvent | SendType)[]
uid: string
url?: string
version: string

Methods

  • Returns void

  • Parameters

    Returns Promise<string | false>

  • Parameters

    Returns void