Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slekup/discord-advanced
Optimize discord.js bot development with pre-made utilities and enhancements.
https://github.com/slekup/discord-advanced
discord discord-js nodejs utility utils
Last synced: 7 days ago
JSON representation
Optimize discord.js bot development with pre-made utilities and enhancements.
- Host: GitHub
- URL: https://github.com/slekup/discord-advanced
- Owner: slekup
- Created: 2023-06-09T07:12:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-26T01:29:31.000Z (12 months ago)
- Last Synced: 2024-10-13T14:14:37.392Z (4 months ago)
- Topics: discord, discord-js, nodejs, utility, utils
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/discord-advanced
- Size: 433 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/slekup/discord-advanced)
---
Documentation (soon) • Discord • GitHub
---
Optimize development of advanced discord.js bots with a collection of class builders, handlers, utility functions, advanced logging, plugin support and more.
[](https://discord.gg/p5rxxQN7DT)
   ---
Discord advanced provides a collection of class builders, handlers, utility functions, advanced logging, plugin support and more to optimize development of advanced discord.js bots.
> **Warning:** This library is still in development and is not ready for production use. There may be breaking changes in the future.
## Installation
```bash
# Using npm
> npm install discord-advanced
# Using yarn or pnpm
> yarn/pnpm add discord-advanced
```## Usage
### Importing
This library supports both typescript and javascript, with ES6 modules and CommonJS.
```ts
// ES6 modules
import { DiscordLogger } from 'discord-advanced';
// CommonJS
const { DiscordLogger } = require('discord-advanced');
```## Functions
| Function | Description |
| ---------- | ------------------------------------------------------------------------------------------ |
| `defer` | An adaptable version of interaction.deferReply() to defer any interaction. |
| `followUp` | An adaptable version of interaction.followUp() to follow up any interaction after a defer. |
| `respond` | An adaptable version of interaction.reply() to respond to any interaction. |## Classes
| Class | Description |
| --------------- | ------------------------------------------------- |
| `DiscordLogger` | Logs leveled console messages to discord channels |