![]() If still this shows muted, then please check your bot permissions overall in discord developer portal & server permissions. You have to put after the ay and check if the bot is muted or not. You could also add the commands.haspermissions () decorator to have it check for admin permissions, example for your code: bot.command () commands. We can check is_muted() attribute of VoiceClient that shows bot connection to the voice channel. The code works for me, the bot is probably missing admin permissions which prevents it from muting and unmuting members. You can also put a user ID instead of its mention. mute, ban and kick only require one argument, the user: mute MEE64876. In this, we can see if it's issue with bot's connection to voice channel: Pro-tip: anywhere on your dashboard, write a command name with your keyboard to automatically go to the corresponding plugin How to use the commands. If the bot is unable to play the audio bcz it's muted, then play will not return an error and callback function passed to after parameter will not be called.You can use this callback function to print out some info about error if it exists: player = ay(source, after=lambda e: print('Player error: %s' % e) if e else None) This function will be called when the playback is complete or when an error occurs. In play command, you can add after parameter that will takes callback function as its value.This /usr/local/bin/ffmpeg should get replaced with yout ffmpeg real path in your linux. ![]() Source = FFmpegPCMAudio('.mp3', executable='/usr/local/bin/ffmpeg')
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |