0
votes
    if '!mvp' in message.content and message.author != client.user:
        print('MVP spotted.')
        await discord.VoiceClient.play(self,source='audio/quotes/CypherLastKillMVP.mp3')

Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\Barusu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\discord\client.py", line 343, in _run_event await coro(*args, **kwargs) File "C:\Users\Barusu\Desktop\discordBot\main.py", line 90, in on_message await discord.VoiceClient.play(self,source='audio/quotes/CypherLastKillMVP.mp3') File "C:\Users\Barusu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\discord\voice_client.py", line 554, in play if not self.is_connected(): AttributeError: 'MyClient' object has no attribute 'is_connected'