Делаю ивент on_voice_state_update в когах. В файле без когов работает, а в когах нет. Из за чего может такое быть?
@commands.Cog.listener()
async def on_voice_state_update(self, member, before, after):
if before.voice.voice_channel is None and after.voice.voice_channel is not None:
print(f"{member} connect to {after.channel.name}")
elif before.voice.voice_channel is not None and after.voice.voice_channel is None:
print(f"{member} disconnect from {before.channel.name}")
elif before.voice.voice_channel is not None and after.voice.voice_channel is not None:
print(f"{member} move from {before.channel.name} to {after.channel.name}")