Skip to content

Commit

Permalink
Send response for PauseIntent
Browse files Browse the repository at this point in the history
  • Loading branch information
thorpelawrence committed Jan 10, 2019
1 parent dbc8320 commit 4fde88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ app.intent('PauseIntent', {
return rq.put("https://api.spotify.com/v1/me/player/pause", req.getSession().details.user.accessToken)
.then((r) => {
req.getSession().set("statusCode", r.statusCode);
return res.send();
res.say(i18n.__("Paused"));
}).catch((err) => {
if (err.statusCode === 403) res.say(i18n.__("Make sure your Spotify account is premium"));
});
Expand Down

0 comments on commit 4fde88d

Please sign in to comment.