6.1.0 • Published 6 months ago

@discordx/music v6.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 months ago

📖 Introduction

A powerful discord music library written in TypeScript for Node.js. Support youtube links.

💻 Installation

Version 16.6.0 or newer of Node.js is required

Ensure that discord.js and @discordjs/voice have been installed before installing this library

npm install @discordx/music
yarn add @discordx/music

🤖 Bot Examples

discord-music-bot from @samarmeena

Note: Create a pull request to include your bot in the example list.

What is QueueNode?

QueueNode is a service that oversees the management of a worker service responsible for handling audio nodes and the corresponding audio node managers. Its primary purpose is to provide music functionality within a system. By utilizing QueueNode, multiple workers can be spawned as needed to enable concurrent music playback across multiple guilds. The QueueNode service ensures efficient coordination and distribution of music playback tasks, allowing for seamless and synchronized playback across different guilds.

What is TrackQueue?

TrackQueue is a service specifically designed to offer playlist-like functionality within a music system. It provides a range of functions such as queuing songs, playing tracks, skipping, repeating, pausing/unpausing, and more. By creating a TrackQueue instance per guild, you can seamlessly integrate playlist functionality into your music system. This allows users to manage and enjoy their own personalized playlists within their respective guilds, enhancing the overall music experience. With TrackQueue, users can easily control the playback flow, manage track order, and apply various playlist-related operations to curate their desired musical journey.

Quick Example

// Create a queue node
const queueNode = new QueueNode(client);

// Create a track queue for guild
const trackQueue = new TrackQueue({
  client: client,
  guildId: guildId,
  queueNode: queueNode,
});

// Join voice channel
queue.join({
  channelId: channelId,
  guildId: guildId,
});

// Add and play track
queue.addTrack({
  url: "VIDEO_URL",
});

📜 Documentation

☎️ Need help?

💖 Thank you

You can support discordx by giving it a GitHub star.

6.1.0

6 months ago

6.0.1

10 months ago

6.0.0

10 months ago

6.0.2

10 months ago

5.0.2

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago

4.1.0

2 years ago

4.0.2

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

3.1.11

2 years ago

3.1.3

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.1.7

2 years ago

3.1.6

2 years ago

3.1.5

2 years ago

3.1.4

2 years ago

3.1.9

2 years ago

3.1.8

2 years ago

3.1.10

2 years ago

3.0.13

2 years ago

3.0.16

2 years ago

3.0.14

2 years ago

3.0.15

2 years ago

1.2.5

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

3.0.12

2 years ago

3.0.10

2 years ago

3.0.11

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

3 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.0

3 years ago

1.3.0

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.7

3 years ago

3.0.9

2 years ago

2.1.0

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

2.0.0-dev

3 years ago

1.0.0

3 years ago