xernerx

A class based framework for discord.js. [BETA]

MIT License

Downloads
363
Stars
1
Committers
2

Xernerx is a class based discord.js framework. [BETA]

It can be customized to be a lightweight handler or a heavy customizable framework that does all the hard work for you

Features

  • Slash command handler
  • Message command handler
  • Context command handler
  • Event handler (with custom Events)
  • Inhibitor handler
  • Extension handler
  • Client Utilities
  • Message Utilities
  • Interaction Utilities
  • Message command handles
  • Extension support
  • ShardClient

Links

Setup

Settings

import XernerxClient from 'xernerx';

new (class Client extends XernerxClient {
	constructor() {
		super([discordOptions], [xernerxOptions]);

		this.connect('token');
	}
})();

Handlers

There are 5 handlers total

  • Command handler, handles message, slash and context commands
  • Event handler, has all the Discord.js events and more
  • Inhibitor handler, handles conditions before commands are ran globally
  • Extension handler, more info here
  • Webhook handler, will allow for top.gg to get your stats (needs a rework)

Extensions

Xernerx supports the ability to use extensions, features not initially included into your code. You can use any extension based on the xernerx-extension-builder package, or make your own with it!

Notes

  • Only compatible with ESM
  • TypeScript and JavaScript support