Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

[![Discord Advanced Logo](https://i.imgur.com/e8MYkfb.png)](https://github.com/slekup/discord-advanced)

---

Documentation (soon)DiscordGitHub

---

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 |