fixed voteskip, added autoplay to guild schema

This commit is contained in:
Emily 2020-04-21 17:01:28 +10:00
parent b7d2792bfc
commit 24cfe07310
2 changed files with 7 additions and 2 deletions

View File

@ -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!'
)

View File

@ -38,6 +38,11 @@ module.exports = model('Guild', new Schema({
}
},
autoplay: {
type: Boolean,
default: false
},
plugins: {
type: Object,
default: {