n8n-nodes-discord-dnd
Version:
n8n node to create triggers for Discord events
10 lines (9 loc) • 417 B
TypeScript
import { Client, ClientOptions } from "discord.js";
/**
* Initializes the Discord client, sets up events, and logs in
* @param token Bot token for authentication
* @param intents Array of GatewayIntentBits for the client
* @throws Error if no token is provided
* @returns Discord client instance
*/
export declare const initializeDiscordClient: (token: string, clientOptions: ClientOptions) => Promise<Client>;