n8n-nodes-discord-dnd
Version:
n8n node to create triggers for Discord events
13 lines (12 loc) • 619 B
TypeScript
import { Client } from "discord.js";
import { ITriggerFunctions } from "n8n-workflow";
export declare class TriggerEventHandler {
private readonly client;
private readonly triggerInstance;
constructor(client: Client, triggerInstance: ITriggerFunctions);
setupEventHandler(event: string, includeBot?: boolean, directMessage?: boolean, pattern?: string, value?: string, serverIds?: string[], channelIds?: string[], roleIds?: string[], userIds?: string[]): Promise<void>;
private getGuildIdFromEvent;
private getChannelIdFromEvent;
private getUserIdFromEvent;
private getMemberFromEvent;
}