mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
Improvements in Readme.md
This commit is contained in:
25
README.md
25
README.md
@@ -14,11 +14,28 @@ npm install sern-handler
|
||||
yarn add sern-handler
|
||||
```
|
||||
|
||||
# Documentation
|
||||
# Basic Usage
|
||||
|
||||
- 📑 [Documentation](https://sernhandler.js.org)
|
||||
```js
|
||||
import { Sern, PayloadOptions } from 'sern-handler';
|
||||
|
||||
const payload = new PayloadOptions({
|
||||
commands: '/commands', // Folder where all commands are located (subfolders supported).
|
||||
events: '/events' // Events folder directory (subfolders supported).
|
||||
owners: ['182326315813306369'], // Array of Discord ID(s).
|
||||
prefix: '/', // Prefix for your bot (if no provied then it will use /).
|
||||
client // The instance of Discord#Client().
|
||||
});
|
||||
|
||||
const handler = new Sern(payload); // Create a new instance of Sern with payloads.
|
||||
```
|
||||
|
||||
# Links
|
||||
|
||||
- 📑 [Official Documentation](https://sernhandler.js.org)
|
||||
- 🎧 [Discord Server](https://discord.gg/QWQWQWQ)
|
||||
|
||||
# Contribute
|
||||
- Pull up on issues and tell me if there are bugs
|
||||
- Check issues
|
||||
- Pull up on issues and tell me if there are bugs.
|
||||
- Check issues.
|
||||
- Any contributions are open to suggestion!
|
||||
|
||||
Reference in New Issue
Block a user