From 528308c858347e23571060e8fdcc635ebad6de3e Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Mon, 8 Apr 2024 12:52:14 +0200 Subject: [PATCH] Fix user not found error message --- util/lastfm/getCurrentScrobble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/lastfm/getCurrentScrobble.js b/util/lastfm/getCurrentScrobble.js index b285af4..4caa679 100644 --- a/util/lastfm/getCurrentScrobble.js +++ b/util/lastfm/getCurrentScrobble.js @@ -27,7 +27,7 @@ module.exports = async function(userID, guild) { track = data.recenttracks.track[0]; } catch (error) { scrobble.error = true; - if(data.message === "User not found"){ + if(data.error === 6){ scrobble.errorMsg = "User not found. Use `fm set ` to set your last.fm username."; resolve(scrobble); }