code: def im_files(self, room_id=None, user_name=None, **kwargs):
          
          if room_id:
              return self.__call_api_get('im.files', roomId=room_id, kwargs=kwargs)
          elif user_name:
              return self.__call_api_get('im.files', username=user_name, kwargs=kwargs)
          else:
              raise RocketMissingParamException('roomId or username required')
docs: Retrieves the files from a direct message.