diff --git a/commands/voteskip.js b/commands/voteskip.js index f82d8d3..489ecdb 100644 --- a/commands/voteskip.js +++ b/commands/voteskip.js @@ -27,9 +27,9 @@ exports.run = (client, message, args, level) => { ) } - const vc = message.guild.members.cache.get(client.user.id).voiceChannel + const vc = message.guild.members.cache.get(client.user.id).voice.channel - if (vc !== message.member.voiceChannel) { + if (vc !== message.member.voice.channel) { return message.channel.send( '<:error:466995152976871434> You need to be in my voice channel to use this command!' ) diff --git a/models/guild.js b/models/guild.js index 23ccbb8..1712da2 100644 --- a/models/guild.js +++ b/models/guild.js @@ -38,6 +38,11 @@ module.exports = model('Guild', new Schema({ } }, + autoplay: { + type: Boolean, + default: false + }, + plugins: { type: Object, default: {