Skip to content

Commit

Permalink
fix(Slack Node): Fix Channel->Kick (#3365)
Browse files Browse the repository at this point in the history
  • Loading branch information
janober authored May 24, 2022
1 parent 90a1bc1 commit 0212d65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {

//https://api.slack.com/authentication/oauth-v2
const userScopes = [
'channels:write',
'chat:write',
'files:read',
'files:write',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Slack/Slack.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export class Slack implements INodeType {
const channel = this.getNodeParameter('channelId', i) as string;
const userId = this.getNodeParameter('userId', i) as string;
const body: IDataObject = {
name: channel,
channel,
user: userId,
};
responseData = await slackApiRequest.call(this, 'POST', '/conversations.kick', body, qs);
Expand Down

0 comments on commit 0212d65

Please sign in to comment.