Improvements in Readme.md

This commit is contained in:
xxDeveloper
2022-02-13 22:13:27 +03:00
parent 911cf05d3f
commit c07d87566a
5 changed files with 65 additions and 48 deletions

View File

@@ -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!