Fix uninitialized variable
This commit is contained in:
parent
b94cb6fb91
commit
e04d8857f9
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ module.exports = async function (userID, guild) {
|
|||
}
|
||||
resolve(tracks);
|
||||
} catch (error) {
|
||||
let scrobble = {};
|
||||
scrobble.error = true;
|
||||
if (data.error === 6) {
|
||||
scrobble.errorMsg = "User not found. Use `<prefix>fm set <lastfm_username>` to set your last.fm username.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue