n8n-nodes-base
Version:
Base nodes of n8n
42 lines (37 loc) • 1.26 kB
text/typescript
/**
* Slack Node - Version 2.1
* Discriminator: resource=reaction, operation=remove
*/
interface Credentials {
slackApi: CredentialReference;
slackOAuth2Api: CredentialReference;
}
/** Remove a reaction of a message */
export type SlackV21ReactionRemoveParams = {
resource: 'reaction';
operation: 'remove';
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
/**
* The Slack channel to get the reactions from
* @default {"mode":"list","value":""}
*/
channelId?: { __rl: true; mode: 'list' | 'id' | 'url'; value: string; cachedResultName?: string };
/**
* Timestamp of the message to add, get or remove
*/
timestamp: number | Expression<number>;
/**
* Emoji code to use for the message reaction. Use emoji codes like +1, not an actual emoji like 👍. <a target="_blank" href=" https://www.webfx.com/tools/emoji-cheat-sheet/">List of common emoji codes</a>
*/
name?: string | Expression<string> | PlaceholderValue;
};
export type SlackV21ReactionRemoveOutput = {
ok?: boolean;
};
export type SlackV21ReactionRemoveNode = {
type: 'n8n-nodes-base.slack';
version: 2.1;
credentials?: Credentials;
config: NodeConfig<SlackV21ReactionRemoveParams>;
output?: Items<SlackV21ReactionRemoveOutput>;
};