#NEWLINE# def _setRole( self , roomJID , nick , role , reason = None , sender = None ) : #NEWLINE# #INDENT# "\n        Send a request to change an occupant's role in a MUC room.\n        " #NEWLINE# request = AdminStanza ( recipient = roomJID , sender = sender , stanzaType = 'set' ) #NEWLINE# item = AdminItem ( nick = nick , role = role , reason = reason ) #NEWLINE# request . items = [ item ] #NEWLINE# return self . request ( request )