Fix user not found error message

This commit is contained in:
SileNce5k 2024-04-08 12:52:14 +02:00
parent 444af32def
commit 528308c858
No known key found for this signature in database
GPG key ID: 961132EB78C8915F

View file

@ -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 `<prefix>fm set <lastfm_username>` to set your last.fm username.";
resolve(scrobble);
}