title: octokit getLabel returning TypeError: callback.bind is not a function
body: <p>I have this function:</p>
  
  <pre><code>async function paginate(method) {
    let response = await method({
      q: "repo:" + repoOrg + "/" + repoName + " is:issue",
      per_page: 100
    });
    data = response.data.items;
    var count = 0;
    while (octokit.hasNextPage(response)) {
      count++;
      console.log(`request n°${count}`);
      response = await octokit.getNextPage(response);
      data = data.concat(response.data.items);
    }
    return data;
  }
  
  paginate(octokit.search.issues)
    .then(data =&gt; {
      callback(data);
    })
    .catch(error =&gt; {
      console.log(error);
    });
  }
  </code></pre>
  
  <p>Instead of running <code>octokit.search.issues</code>, I wish to run <code>octokit.issues.getLabel</code>.</p>
  
  <p>I tried changing:</p>
  
  <pre><code>let response = await method({
    q: "repo:" + repoOrg + "/" + repoName + " is:issue",
    per_page: 100
  });
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>let response = await octokit.issues.getLabel("owner", "repo", "label_name");
  </code></pre>
  
  <p>But I got this error: <code>TypeError: callback.bind is not a function</code>.</p>
  
  <p>I tried several other combinations of this buthad no luck. I also couldn't find any code examples online other than at <a href="https://octokit.github.io/rest.js/#api-Issues-getLabel" rel="nofollow noreferrer">enter link description here</a></p>
  
  <p>Can somebody show me how this should be coded?</p>