code: def set_presence(self, presence):
          
          if presence not in ['auto', 'away']:
              presence = 'auto'
          self.params.update({
              'presence': presence,
              })
          return FromUrl('https://slack.com/api/users.setPresence', self._requests)(data=self.params).post()
docs: https://api.slack.com/methods/users.setPresence