mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
✨ Add message.delete in Slack nodes (#1377)
This commit is contained in:
@@ -795,6 +795,17 @@ export class Slack implements INodeType {
|
||||
Object.assign(body, updateFields);
|
||||
responseData = await slackApiRequest.call(this, 'POST', '/chat.update', body, qs);
|
||||
}
|
||||
//https://api.slack.com/methods/chat.delete
|
||||
if (operation === 'delete') {
|
||||
const channel = this.getNodeParameter('channelId', i) as string;
|
||||
const ts = this.getNodeParameter('ts', i) as string;
|
||||
const body: IDataObject = {
|
||||
channel,
|
||||
ts,
|
||||
};
|
||||
// Add all the other options to the request
|
||||
responseData = await slackApiRequest.call(this, 'POST', '/chat.delete', body, qs);
|
||||
}
|
||||
//https://api.slack.com/methods/chat.getPermalink
|
||||
if (operation === 'getPermalink') {
|
||||
const channel = this.getNodeParameter('channelId', i) as string;
|
||||
|
||||
Reference in New Issue
Block a user