From 2b5027eb06a432bfb6a5c4f4a9f9e70ff0612c04 Mon Sep 17 00:00:00 2001 From: LuanRT Date: Sun, 6 Feb 2022 15:26:16 -0300 Subject: [PATCH] fix: `getLyrics()` only working when signed-in --- lib/Actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Actions.js b/lib/Actions.js index d13d46f2..cd3db44f 100644 --- a/lib/Actions.js +++ b/lib/Actions.js @@ -64,7 +64,7 @@ async function engage(session, engagement_type, args = {}) { * @returns {object} { success: boolean, status_code: number, data: object } | { success: boolean, status_code: number, message: string } */ async function browse(session, action_type, args = {}) { - if (!session.logged_in) throw new Error('You are not signed-in'); + if (!session.logged_in && action_type != 'lyrics') throw new Error('You are not signed-in'); let data; switch (action_type) { // TODO: Handle more actions