Discord Username fabian27496
Description of Cog: I would like an output in a text channel with the name that joined the voice channel
the text should be about member needed support
I have already received part of the cog from the discord
from redbot.core import commands
class mycog(commands.Cog):
@commands.Cog.listener()
async def on_voice_state_update(self, member, before: object, after):
CHANNEL_YOU_WANT_TO_MONITOR = 667771048778792970 # type: int
if before.channel.id != CHANNEL_YOU_WANT_TO_MONITOR and after.channel.id == CHANNEL_YOU_WANT_TO_MONITOR:
pass #send the message here
V2 or V3: V3