mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(Slack Node): Fix Channel->Kick (#3365)
This commit is contained in:
parent
90a1bc120b
commit
0212d65dae
|
@ -5,6 +5,7 @@ import {
|
||||||
|
|
||||||
//https://api.slack.com/authentication/oauth-v2
|
//https://api.slack.com/authentication/oauth-v2
|
||||||
const userScopes = [
|
const userScopes = [
|
||||||
|
'channels:write',
|
||||||
'chat:write',
|
'chat:write',
|
||||||
'files:read',
|
'files:read',
|
||||||
'files:write',
|
'files:write',
|
||||||
|
|
|
@ -339,7 +339,7 @@ export class Slack implements INodeType {
|
||||||
const channel = this.getNodeParameter('channelId', i) as string;
|
const channel = this.getNodeParameter('channelId', i) as string;
|
||||||
const userId = this.getNodeParameter('userId', i) as string;
|
const userId = this.getNodeParameter('userId', i) as string;
|
||||||
const body: IDataObject = {
|
const body: IDataObject = {
|
||||||
name: channel,
|
channel,
|
||||||
user: userId,
|
user: userId,
|
||||||
};
|
};
|
||||||
responseData = await slackApiRequest.call(this, 'POST', '/conversations.kick', body, qs);
|
responseData = await slackApiRequest.call(this, 'POST', '/conversations.kick', body, qs);
|
||||||
|
|
Loading…
Reference in a new issue