Welcome to discord-ext-music’s documentation!

An easy to use music extension for discord.py

Features:

  • It’s easy to use

  • Have all playback and playlist controls

  • Thread-safe playback controls

  • Built-in equalizer and volume adjuster for PCM codec audio

  • Can play most supported sources from FFmpeg libraries and it embedded into python!

Quick Usage

from discord.ext.commands import Bot
from discord.ext.music import MusicClient, WAVAudio, Track

bot = Bot()

@client.command()
async def play(ctx):
    voice_user = ctx.message.author.voice
    music_client = await voice_user.channel.connect(cls=MusicClient)
    track = Track(
        WAVAudio('audio.wav'), # AudioSource
        'This is audio' # name
    )
    await music_client.play(track)

bot.run('token')

Bot Example

bot example are available in here.

Indices and tables