chat/channels

Version: 1.0.0
chat/channels
superface

Get Channels

Retrieve paginated list of channels, e.g. text channels in slack or discord

Workspace
Channel Visibility Filter
Limit
Page
Channels
Next Page
Rate Limit

1. Install

npx @superfaceai/cli install chat/channels

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('chat/channels');

  // Use the profile
  const result = await profile
    .getUseCase('GetChannels')
    .perform({
      visibility: 'public',
      limit: 2
    });

  return result.unwrap();
}

run();

3. Add providers