UNPKG

disrexom

Version:

A Discord.js module to simplify your music commands and play songs with audio filters on Discord without any API key. Support YouTube, SoundCloud, Bandcamp, Facebook, and 700+ more sites

29 lines 1.03 kB
import Plugin from "./Plugin"; import { PluginType } from ".."; import type { Playlist, Song } from "."; import type { GuildMember } from "discord.js"; /** * Extractor Plugin * @extends Plugin * @abstract */ export declare abstract class ExtractorPlugin extends Plugin { type: PluginType; /** * Resolve the validated url to a {@link Song} or a {@link Playlist}.\ * Not needed to add {@link Song#related} because it will be added with {@link Plugin#getRelatedSongs}. */ abstract resolve(url: string, member: GuildMember): Promise<Song | Playlist>; } /** * Resolve the validated url to a {@link Song} or a {@link Playlist}.\ * Not needed to add {@link Song#related} because it will be added with {@link Plugin#getRelatedSongs}. * @param {string} url URL * @param {Discord.GuildMember} member Requested user * @returns {Promise<Song|Song[]|Playlist>} * @method resolve * @memberof ExtractorPlugin# * @abstract */ export default ExtractorPlugin; //# sourceMappingURL=ExtractorPlugin.d.ts.map