refactor: Adjust slack list channels to use slack client

This commit is contained in:
Faruk AYDIN
2022-09-01 22:18:37 +03:00
parent 0246d48584
commit 26eee1bb63
4 changed files with 27 additions and 12 deletions

View File

@@ -1,10 +1,12 @@
import ListChannels from './data/list-channels';
import { IJSONObject } from '@automatisch/types';
import SlackClient from './client';
export default class Data {
client: SlackClient;
listChannels: ListChannels;
constructor(connectionData: IJSONObject) {
this.listChannels = new ListChannels(connectionData);
constructor(client: SlackClient) {
this.client = client;
this.listChannels = new ListChannels(client);
}
}