UNPKG

n8n-nodes-discord-dnd

Version:
10 lines (9 loc) 417 B
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>;