discord-interactions
discord-interactions copied to clipboard
A simple to use discord interactionClient
https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure  ```ts await slashCommandClient.createCommand({ name: 'complete', description: 'Complete your order', options: [ { name: 'count', type: 4, min_value: 1, // Error: Object literal may only specify known properties, and...
When using default option in a slash-command option an error is thrown: "code":"APPLICATION_COMMAND_OPTIONS_DEFAULT_INVALID","message":"There can be 1 default option within command, sub-command, and sub-command group options" Even tho there is just...
code: ``` const Discord = require("discord.js"); const interactions = require("discord-slash-commands"); // create a new client const client = new Discord.Client(); const token = "BOT TOKEN"; // attach the interaction client...