code: def shard_id(self):
          
          count = self._state.shard_count
          if count is None:
              return None
          return (self.id >> 22) % count
docs: Returns the shard ID for this guild if applicable.