import { Slack } from "@sierai/stargate-auth";
import { StargateTool } from "@sierai/stargate-toolmaker";

const getUsers = new StargateTool({
  name: "slack_get_users",
  description: "This tool will get the users from a slack workspace",
  runner: async (_, config, oauthProvider: InstanceType<typeof Slack>) => {
    const res = await oauthProvider.getUsers();
    return JSON.stringify(res);
  },
});

export default getUsers;
