1.1.4 • Published 1 year ago

diswrap.js v1.1.4

Weekly downloads
-
License
CC-BY-NC-ND-2.5
Repository
-
Last release
1 year ago

Version

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)
ParameterTypeDescription
clientOptionsobjectThe Client Options.

commandsCreate

  new commandsCreate(commandName)
ParameterTypeDescription
commandNamestring/commandNamesRequired. The name of the command.

publishCommand

  new publishCommand(operation, command, client, guildId)
ParameterTypeDescription
operationnumberRequired. The id of the operation to perform - Use the SlashCommandOperations module for easier usage.
commandObjectRequired. The object containing the commands to publish - this object is defined in the object class.
clientObjectRequired. The client object of the bot.
guildIdObjectRequired when operation is 3 or 4. The guild id of the guild to publish the commands to.

commandsManager

  new commandsManager(...args)
ParameterTypeDescription
...argsArrayA "list" of arguments inputed by the client process when an interaction is created.

wrapperManager

  new wrapperManager(client, commands, options = {})
ParameterTypeDescription
clientObjectRequired. The client process of the bot.
commandsObjectRequired. An object of all the commands, used for managing the object.
optionsObjectRequired. The option of the manager requested by client.

clientOptions

ParameterTypeDescription
tokenstringRequired. The token of the bot.
intentsstringThe 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

License

CC-BY-NC-ND-2.5

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago