Interface DamonJsOptions

Hierarchy

  • DamonJsOptions

Properties

defaultSearchEngine: string

Default search engine if no engine was provided. Default to youtube

defaultYoutubeThumbnail?: YoutubeThumbnail

The default youtube thumbnail's size

extends?: {
    player?: Utils_Constructor<DamonJsPlayer>;
}

Extend some of the Structures

Type declaration

playSpam?: {
    destroy: {
        maxhits: number;
        timeFrame: number;
    };
    rule: {
        cooldown: number;
        maxhits: number;
        timeFrame: number;
    };
}

play spam config until destroys

Type declaration

  • destroy: {
        maxhits: number;
        timeFrame: number;
    }
    • maxhits: number
    • timeFrame: number
  • rule: {
        cooldown: number;
        maxhits: number;
        timeFrame: number;
    }
    • cooldown: number
    • maxhits: number
    • timeFrame: number
plugins?: DamonJsPlugin[]

DamonJs plugins

sourceForceResolve?: string[]

Source that will be forced to resolve when playing it

trackEnd?: {
    skip: boolean;
}

Type declaration

  • skip: boolean
trackException?: {
    skip: boolean;
}

Type declaration

  • skip: boolean
trackResolveError?: {
    skip: boolean;
}

Type declaration

  • skip: boolean
trackResolver?: ((this: DamonJsTrack, options?: ResolveOptions) => Promise<boolean>)

Type declaration

    • (this: DamonJsTrack, options?: ResolveOptions): Promise<boolean>
    • The track resolver. Make sure you set .track for it to work. (I'm not responsible for any error during playback if you don't set it right)

      Parameters

      Returns Promise<boolean>

trackStuck?: {
    skip: boolean;
}

Type declaration

  • skip: boolean

Generated using TypeDoc