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: 16 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 (8 months ago)
- Last Synced: 2024-10-13T14:14:37.392Z (24 days 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
[![Discord Advanced Logo](https://i.imgur.com/e8MYkfb.png)](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.
[![Discord Server](https://img.shields.io/discord/1028009131073880104?color=5865F2&logo=discord&logoColor=white)](https://discord.gg/p5rxxQN7DT)
![NPM Version](https://img.shields.io/npm/v/discord-advanced.svg) ![NPM Downloads](https://img.shields.io/npm/dt/discord-advanced) ![Test Status](https://github.com/slekup/discord-advanced/actions/workflows/tests.yml/badge.svg) ![NPM Size](https://img.shields.io/bundlephobia/min/discord-advanced)---
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 |