diswrap.js
v1.1.4
Published
Free version of diswrap.js, a discord.js wrapper that makes discord bot coding easier
Downloads
3
Maintainers
Readme
Installation
ProjectDelta Installation(recommended)
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. |
clientOptions
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| token
| string
| Required. The token of the bot. |
| intents
| string
| The intents needed by the bot. |
Changelogs
1.1.4
- Better publishing system
1.1.3
- Added a badge to README
1.1.2
- Fixed README inaccuracies
1.1.1
- Fixed README inaccuracies
1.1.0
- Added new Class publishCommand
- Changed file format to a cleaner form
- Comment added for easier development
- JSDoc added to make coding easier
- Added the only event available for lite - ready
1.0.0
- Initial Release