Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8 from Rodabaugh/master
Browse files Browse the repository at this point in the history
Changed the clearqueue...
  • Loading branch information
DarkoPendragon authored Nov 1, 2017
2 parents 51f2262 + cf9298d commit a5c7f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ module.exports = function (client, options) {
* @param {string} suffix - Command suffix.
*/
function clearqueue(msg, suffix) {
if (isAdmin(msg.member)) {
if (canSkip(msg.member)) {
const queue = getQueue(msg.guild.id);
const voiceConnection = client.voiceConnections.find(val => val.channel.guild.id == msg.guild.id);
if (voiceConnection === null) return msg.channel.send(note('fail', 'I\'m not in any channel!.'));
Expand Down

0 comments on commit a5c7f0a

Please sign in to comment.