Skip to content

Commit

Permalink
user_name, not user_id for incoming requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwards, Chris authored and Edwards, Chris committed Apr 13, 2017
1 parent 19c9dbf commit a1139ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ export function getQueue() {
}


export function exec({ text, user_id, command }) {
export function exec({ text, user_name, command }) {

let error;

switch (command) {
case '/play':
return playTrack(text, user_id);
return playTrack(text, user_name);
case '/add':
return queueTrack(text, user_id);
return queueTrack(text, user_name);
case '/skip':
return skipTrack();
case '/playing':
Expand Down

0 comments on commit a1139ee

Please sign in to comment.