Syntax Explanation

Okay I see what its saying now but how do I call the NAME to get he names of the people in the chat, do i do it like:
self.socket.send(“NAMES {}\r\n”.format(self.chan).encode(“utf-8”))?
I think after this I can figure out the rest on my own so thank you very much for the help!