appujet / lavamusic

lavalink music bot base in lavalink-client and discord.js v14
https://appujet.github.io/lavamusic/
GNU General Public License v3.0
567 stars 495 forks source link

Bot needs admin privileges to work #412

Closed alez007 closed 1 year ago

alez007 commented 1 year ago

Bug description

For some reason the bot needs administrator permissions to work. Briefly looking over the commands in the code, it should need just a few permissions: View Channels, Send Messages, Embed Links, Use Application Commands, Connect, Speak

Might be wrong but whatever I try, anything less than administrator permissions will not play anything or join the music channel.

Step to reproduce

  1. go to https://discordapi.com/permissions.html
  2. select permissions: View Channels, Send Messages, Embed Links, Add Reactions, Use Application Commands, Connect, Speak
  3. invite the bot
  4. try to play something

Operating system

linux

Nodejs version

docker version from master branch

Errors / Logs

I don't have enough permissions connect your VC! Please give me permission to CONNECT or SPEAK.

LucasB25 commented 1 year ago
            client: ['SendMessages', 'ViewChannel', 'EmbedLinks', 'Connect', 'Speak'],
alez007 commented 1 year ago
            client: ['SendMessages', 'ViewChannel', 'EmbedLinks', 'Connect', 'Speak'],

is this a configuration thing I need to add ?

LucasB25 commented 1 year ago

no you must have put your leave wrong

alez007 commented 1 year ago

no you must have put your leave wrong

Sorry I'm not following can you please give me more information? I'm not very versed in discord api

Suhaybu commented 1 year ago

I think this might have to do with your permission of your voice channel itself, make sure the permissions of the channel don't interfere with the bot's permissions.

This surely is a problem associated to how your discord server is configured and not the bot itself. Check the roles and permissions the bot has.

alez007 commented 1 year ago

I think this might have to do with your permission of your voice channel itself, make sure the permissions of the channel don't interfere with the bot's permissions.

This surely is a problem associated to how your discord server is configured and not the bot itself. Check the roles and permissions the bot has.

this is the right answer, my music channel didn't give the right permissions for the role the bot was using, thanks!