mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Add Slack trigger node (#9190)
Co-authored-by: Giulio Andreini <andreini@netseven.it>
This commit is contained in:
@@ -5,6 +5,7 @@ import type {
|
||||
IOAuth2Options,
|
||||
IHttpRequestMethods,
|
||||
IRequestOptions,
|
||||
IWebhookFunctions,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { NodeOperationError, jsonParse } from 'n8n-workflow';
|
||||
@@ -12,7 +13,7 @@ import { NodeOperationError, jsonParse } from 'n8n-workflow';
|
||||
import get from 'lodash/get';
|
||||
|
||||
export async function slackApiRequest(
|
||||
this: IExecuteFunctions | ILoadOptionsFunctions,
|
||||
this: IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,
|
||||
method: IHttpRequestMethods,
|
||||
resource: string,
|
||||
body: object = {},
|
||||
@@ -88,6 +89,7 @@ export async function slackApiRequest(
|
||||
Object.assign(response, { message_timestamp: response.ts });
|
||||
delete response.ts;
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user