From 76471b4fa8789f83b6783222bf45af7d5f67b022 Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Tue, 11 May 2021 20:08:57 +0545 Subject: [PATCH] fix documentaiton --- src/utils/env.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/utils/env.ts b/src/utils/env.ts index d658e52..c32798d 100644 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -2,14 +2,20 @@ import { Store, Client } from 'soundcloud-scraper'; import { YouTube } from 'youtube-sr'; -/** - * Utility env - */ export class Env { + + /** + * Utility env + */ + constructor() { + throw new Error(`Cannot instantiate the class ${this.constructor.name}`); + } + /** * The soundcloud client * @example const sc = new (require("discord-player")).Env.SoundcloudClient.Client(); * sc.search("faded").then(console.log); + * @type {Object} */ static get SoundcloudClient() { return { Client }; @@ -18,6 +24,7 @@ export class Env { /** * The soundcloud store utils * @example const store = require("discord-player").Env.SoundcloudStore.setAPIkey("soundcloud_api_key") + * @type {Object} */ static get SoundcloudStore() { const store = Store as Map; @@ -27,6 +34,7 @@ export class Env { /** * The youtube search + * @type {YouTube} */ static get youtube() { return YouTube;