n8n-nodes-discord-trigger
Version:
A node that triggers a workflow whenever a message from discord is sent.
18 lines (17 loc) • 803 B
TypeScript
import { INodePropertyOptions } from 'n8n-workflow';
export interface ICredentials {
clientId: string;
token: string;
apiKey: string;
baseUrl: string;
}
export declare const connection: (credentials: ICredentials) => Promise<string>;
export declare const getChannels: (that: any, guildIds: string[]) => Promise<INodePropertyOptions[]>;
export declare const getGuilds: (that: any) => Promise<INodePropertyOptions[]>;
export interface IRole {
name: string;
id: string;
}
export declare const getRoles: (that: any, selectedGuildIds: string[]) => Promise<INodePropertyOptions[]>;
export declare const checkWorkflowStatus: (n8nApiUrl: String, apiToken: String, workflowId: String) => Promise<boolean>;
export declare const ipcRequest: (type: string, parameters: any) => Promise<any>;