Diswrap.js
  • Diswrap.js
  • Installation
  • Example Bot
  • Beta Information
  • Usage Agreement of Diswrap.js Pro
  • Classes
    • Client
    • commandsBuilder
    • commandsManager
    • publishCommand
  • Types
    • Commands
    • Intents
    • SlashCommandLocale
    • SlashCommandOperations
    • SlashCommandOptionType
  • Definitions
    • clientOptions
Powered by GitBook
On this page
  1. Classes

publishCommand

Class used to publish slash commands to the Discord API.

PreviouscommandsManagerNextCommands

Last updated 2 years ago

new publishCommand(operation, client)
Argument
Required
Type
Description

operation

number

The id of the operation to perform | Use the type

client

The client object of the bot

SlashCommandOperations
Client