1.1.2 • Published 5 months ago

shardclient v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

ShardClient - Custom Discord.js Client Package

Welcome to ShardClient, a powerful extension for Discord.js that enhances your bot development experience. This package provides a feature-rich custom client with extra utilities, methods, and streamlined structures for commands, events, components, and interaction context.

Features

Commands

  • Category & Help Display: Organize commands into categories and display helpful information.
  • Command ID Handling: Automatically attaches the Discord commandId to each command object for later reference.
  • Main & Subcommands: Easily define main commands and subcommands for later use.
  • Modularization: Split commands and subcommands into separate files for better organization.

Command Documentation

Events

  • Custom Events: Custom events for each interaction type for greater control over your bot.
  • Flexible Event Naming: Optional event naming for your convenience.

Event Documentation

Components

  • Component Interactions: Move message component interactions into separate files for organization.
  • Optional Naming: Name your interactions as you see fit.

Component Documentation

Context

  • Command & Interaction Context: Creates a command and interaction context object for easy access to all parameters.
  • Destructuring Support: Combines all parameters into one ctx variable for simpler code.

Automatic Handling

  • Effortless Setup: All handlers are built into the package, making setup a breeze.
  • Dynamic File Sweeping: Automatically scans and processes all necessary files within your directory structure.

Installation

To install ShardClient using npm:

npm install shardclient

Usage

Here's a basic example of how to set up your custom Discord.js client using ShardClient:

const { ShardClient, ClientOptions } = require('shardclient')
const bot = new ShardClient()
bot.login(new ClientOptions());

For detailed usage and examples, please refer to the example folder.

Contributing

Contributions to this project are welcome! If you have suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

License

ShardClient is licensed under the MIT License.

Acknowledgements

Special thanks to the Discord.js community for their amazing work and inspiration.

Support

Unfortunately we do not have any direct support lines open. In the future, we will have a Discord server ready to help whenever its needed!