UNPKG

n8n-nodes-discord

Version:

nodes to trigger workflows from Discord or send interactive messages. Uses the components API which allows to create dialogs (e.g. attach buttons and wait for the user to click on them)

17 lines 563 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const discord_js_1 = require("discord.js"); const name = 'ping'; exports.default = { name, command: () => { return new discord_js_1.SlashCommandBuilder() .setName(name) .setDescription('Replies with pong!') .addStringOption((option) => option.setName('input').setDescription('The input to echo back').setRequired(false)); }, reply: async (param) => { return 'Pong! ' + param; }, }; //# sourceMappingURL=ping.js.map