Fix user not found error message
This commit is contained in:
parent
444af32def
commit
528308c858
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue