Skip to content

Commit

Permalink
🚀queue crashes when theres nothing playing.
Browse files Browse the repository at this point in the history
Bug fixes:
- Queue command crashed when nothing is playing, altho the / command of queue works as intended.
  • Loading branch information
DarrenOfficial authored Nov 2, 2021
1 parent 9567501 commit f55cbcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
*/
run: async (client, message, args, { GuildDB }) => {
let player = await client.Manager.get(message.guild.id);
if (!player.queue.current)
if (!player)
return client.sendTime(
message.channel,
"❌ | **Nothing is playing right now...**"
Expand Down

1 comment on commit f55cbcc

@AryanTah2005
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:-3

Please sign in to comment.