1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-22 14:53:17 +00:00

Update seek.js

This commit is contained in:
Christer Warén 2019-10-31 23:49:14 +02:00 committed by GitHub
parent 8f4df31a66
commit c17baf973a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ module.exports = {
const { voiceChannel } = message.member;
let data = await Promise.resolve(ytdl.getInfo(serverQueue.songs[0].url));
if (serverQueue) {
if (message.author.id !== client.global.devId) {
if (message.author.id !== client.config.devId) {
return message.channel.send(':x: This command is currently disabled!');
if (voiceChannel !== serverQueue.voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in the same voice channel as Musix to seek the song!');
if (client.global.db.guilds[message.guild.id].permissions === true) {