omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    discord.py how to get the id of a vc that specific person just joined

    Pythonista
    2
    2
    2399
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sayochi
      sayochi last edited by

      Im pretty new at this. trying to make a bot that when I join the vc it also joins. I make that part that it detects when (only) I joined the voice channel with

      @client.event
      async def on_voice_state_update(member, before, after,):
          if after is not None and member.id == "my_id":
      

      but I dont know how to get the id of the channel I just joined so I can send the bot to there. is it even possible?

      1 Reply Last reply Reply Quote 0
      • feelingnothing
        feelingnothing last edited by

        after.voice.channel.id

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors