discord-player-deezer
Advanced tools
Comparing version 2.2.1-dev.1 to 2.2.1-dev.2
@@ -33,2 +33,3 @@ import { Track, ExtractorStreamable, BaseExtractor, SearchQueryType, ExtractorSearchContext, Playlist as Playlist$1, ExtractorInfo, Player } from 'discord-player'; | ||
activate(): Promise<void>; | ||
deactivate(): Promise<void>; | ||
validate(query: string, type: SearchQueryType & "deezer"): Promise<boolean>; | ||
@@ -35,0 +36,0 @@ buildPlaylistData(data: Playlist, handleContext: ExtractorSearchContext): Playlist$1; |
@@ -210,2 +210,3 @@ "use strict"; | ||
async activate() { | ||
this.protocols = ["deezer"]; | ||
if (!this.options.decryptionKey) process.emitWarning(Warnings.MissingDecryption); | ||
@@ -231,2 +232,5 @@ else { | ||
} | ||
async deactivate() { | ||
this.protocols = []; | ||
} | ||
async validate(query, type) { | ||
@@ -233,0 +237,0 @@ return validate(query) || type === "deezer"; |
{ | ||
"name": "discord-player-deezer", | ||
"version": "2.2.1-dev.1", | ||
"version": "2.2.1-dev.2", | ||
"description": "A custom extractor made for discord-player that enables you to extract from Deezer.", | ||
@@ -30,3 +30,3 @@ "main": "dist/index.js", | ||
"type": "git", | ||
"url": "https://github.com/retrouser955/discord-player-deezer/" | ||
"url": "git+https://github.com/retrouser955/discord-player-deezer.git" | ||
}, | ||
@@ -33,0 +33,0 @@ "bugs": { |
@@ -37,2 +37,3 @@ import { BaseExtractor, ExtractorSearchContext, ExtractorStreamable, Track, Playlist, Util as DPUtil, ExtractorInfo, SearchQueryType } from "discord-player" | ||
async activate(): Promise<void> { | ||
this.protocols = ["deezer"] | ||
if(!this.options.decryptionKey) process.emitWarning(Warnings.MissingDecryption) | ||
@@ -66,2 +67,6 @@ else { | ||
async deactivate() { | ||
this.protocols = [] | ||
} | ||
async validate(query: string, type: SearchQueryType & "deezer"): Promise<boolean> { | ||
@@ -68,0 +73,0 @@ return validate(query) || type === "deezer" |
278362
701