2.1.0 • Published 6 years ago

discord.js-music v2.1.0

Weekly downloads
63
License
ISC
Repository
github
Last release
6 years ago

Discord.js Music

A module that adds simple music functionality to Discord.js

Reference

Playlist extends CassettePlaylist

  • static ensureVoiceConnection(channel: VoiceChannel): Promise<VoiceConnection> ensure a voice connection.

  • constructor(guild: Guild)

  • guild: Guild (readonly) the guild for this playlist

  • playing: boolean (readonly) whether the playlist is currently playing

  • stop(): void temporarily stop the playlist without destroying it

  • destroy(): void stop the playlist and destroy it
  • pause(): void pause playlist playback
  • resume(): void resume playlist playback
  • start(channel: VoiceChannel): Promise<void> start playback in a channel

example

// in your main file
require('discord.js-music');

// in some command
const playlist = message.guild.playlist;
await playlist.add(message.content);
return playlist.start(message.member.voiceChannel);
3.0.0

6 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago