diff --git a/src/utils/env.ts b/src/utils/env.ts index b704d55..d658e52 100644 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -6,21 +6,23 @@ import { YouTube } from 'youtube-sr'; * Utility env */ export class Env { - /** * The soundcloud client + * @example const sc = new (require("discord-player")).Env.SoundcloudClient.Client(); + * sc.search("faded").then(console.log); */ static get SoundcloudClient() { - return Client; + return { Client }; } /** * The soundcloud store utils + * @example const store = require("discord-player").Env.SoundcloudStore.setAPIkey("soundcloud_api_key") */ static get SoundcloudStore() { const store = Store as Map; const setAPIkey = (newKey: string) => store.set('SOUNDCLOUD_API_KEY', newKey); - return { setAPIkey }; + return { setAPIkey, store }; } /**