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); }