documentation

This commit is contained in:
Snowflake107 2021-06-20 20:45:19 +05:45
parent 08da3834ec
commit 9f69ddab60
4 changed files with 7 additions and 1 deletions

View file

@ -8,5 +8,5 @@ const { AudioFilters } = require("discord-player");
AudioFilters.define("3D", "apulsator=hz=0.128"); AudioFilters.define("3D", "apulsator=hz=0.128");
// later, it can be used like this // later, it can be used like this
queue.setFilters(message, { "3D": true }); queue.setFilters({ "3D": true });
``` ```

View file

@ -0,0 +1,3 @@
# Slash Commands Example
You can use Discord Player with slash commands. **[Here](https://github.com/Androz2091/discord-player/tree/v5/example/music-bot)** is an example on how to use this framework with slash commands.

View file

@ -0,0 +1,2 @@
# Music Bot
Slash commands music bot backed by **[Discord Player](https://discord-player.js.org)**.

View file

@ -302,6 +302,7 @@ class Queue<T = unknown> {
} }
/** /**
* Play stream in a voice/stage channel
* @param {Track} [src] The track to play (if empty, uses first track from the queue) * @param {Track} [src] The track to play (if empty, uses first track from the queue)
* @param {PlayOptions} [options={}] The options * @param {PlayOptions} [options={}] The options
* @returns {Promise<void>} * @returns {Promise<void>}