Since ProjectDelta is a registry built separately from NPM, but it still uses NPM for the operations, we need to register the registry to your project.
ProjectDelta is recommended because Diswrap.js is developed by developers of ProjectDelta, any errors could be fixed asap.
// register your registry for the project
npm set registry https://projectdelta.ml --location project
lite version does not need an account, so we can just install.
npm install diswrap.js
NPM Installation
npm install diswrap.js
Lite Features
Beginner Friendly
3 Basic Information Command
1 Basic event(ready)
Upgrade to pro
Please join our Discord Server to upgrade to Diswrap.js Pro versions.
Authors
Apple Development
API Reference
Client
new Client(clientOptions)
Parameter
Type
Description
clientOptions
object
The Client Options.
commandsCreate
new commandsCreate(commandName)
Parameter
Type
Description
commandName
string/commandNames
Required. The name of the command.
publishCommand
new publishCommand(operation, command, client, guildId)
Parameter
Type
Description
operation
number
Required. The id of the operation to perform - Use the SlashCommandOperations module for easier usage.
command
Object
Required. The object containing the commands to publish - this object is defined in the object class.
client
Object
Required. The client object of the bot.
guildId
Object
Required when operation is 3 or 4. The guild id of the guild to publish the commands to.
commandsManager
new commandsManager(...args)
Parameter
Type
Description
...args
Array
A "list" of arguments inputed by the client process when an interaction is created.
wrapperManager
new wrapperManager(client, commands, options = {})
Parameter
Type
Description
client
Object
Required. The client process of the bot.
commands
Object
Required. An object of all the commands, used for managing the object.
options
Object
Required. The option of the manager requested by client.