https://github.com/xernerx/xernerx
A class based framework for discord.js. [BETA]
https://github.com/xernerx/xernerx
discord discord-js discordjs framework javascript typescript xernerx
Last synced: 8 months ago
JSON representation
A class based framework for discord.js. [BETA]
- Host: GitHub
- URL: https://github.com/xernerx/xernerx
- Owner: Xernerx
- License: mit
- Created: 2022-04-21T18:18:56.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-09-21T14:37:55.000Z (9 months ago)
- Last Synced: 2025-09-21T14:38:42.589Z (9 months ago)
- Topics: discord, discord-js, discordjs, framework, javascript, typescript, xernerx
- Language: TypeScript
- Homepage: https://docs.xernerx.com/xernerx
- Size: 6.57 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://xernerx.github.io/xernerx)
[](https://discord.gg/teNWyb69dq)





[](https://wakatime.com/badge/user/0eeef1b5-98a7-4ec0-ab4c-db00536d5ed1/project/23ab34b7-623b-45e8-b8db-e9f1910589f7)


# About
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
> - [x] Slash command handler
> - [x] Message command handler
> - [x] Context command handler
> - [x] Event handler (with custom Events)
> - [x] Inhibitor handler
> - [x] Extension handler
> - [x] Client Utilities
> - [x] Message Utilities
> - [x] Interaction Utilities
> - [x] Message command handles
> - [x] Extension support
> - [x] ShardClient
## Links
> - [Documentation](https://xernerx.github.io/xernerx/docs/#v4)
> - [Guide](https://xernerx.github.io/xernerx/guide/#v4)
## Setup
### Settings
```js
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](#Extensions)
> - 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](https://npmjs.com/xernerx-extension-builder) package, or make your own with it!
## Notes
- Only compatible with ESM
- TypeScript and JavaScript support