code: async def cycle(self, channel):
          
          if not self.in_channel(channel):
              raise NotInChannel(channel)
  
          password = self.channels[channel]['password']
          await self.part(channel)
          await self.join(channel, password)
docs: Rejoin channel.