{"id":20407093,"url":"https://github.com/appellation/discord.js-music","last_synced_at":"2025-04-12T15:11:00.809Z","repository":{"id":57212729,"uuid":"102401836","full_name":"appellation/discord.js-music","owner":"appellation","description":"Music for discord.js","archived":false,"fork":false,"pushed_at":"2018-04-15T16:37:24.000Z","size":85,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T22:47:22.022Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appellation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-04T20:56:08.000Z","updated_at":"2022-06-30T13:02:25.000Z","dependencies_parsed_at":"2022-09-12T11:32:09.274Z","dependency_job_id":null,"html_url":"https://github.com/appellation/discord.js-music","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appellation%2Fdiscord.js-music","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appellation%2Fdiscord.js-music/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appellation%2Fdiscord.js-music/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appellation%2Fdiscord.js-music/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appellation","download_url":"https://codeload.github.com/appellation/discord.js-music/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586231,"owners_count":21128997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T05:21:17.588Z","updated_at":"2025-04-12T15:11:00.781Z","avatar_url":"https://github.com/appellation.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord.js Music\nA module that adds simple music functionality to Discord.js\n\n### Reference\n`Playlist` *extends* [`CassettePlaylist`](https://github.com/appellation/cassette#reference)\n- *static* **ensureVoiceConnection(channel: VoiceChannel)**: `Promise\u003cVoiceConnection\u003e` ensure a voice connection.\n\n- **`constructor(guild: Guild)`**\n\n- **guild**: `Guild` *(readonly)* the guild for this playlist\n- **playing**: `boolean` *(readonly)* whether the playlist is currently playing\n\n- **stop()**: `void` temporarily stop the playlist without destroying it\n- **destroy()**: `void` stop the playlist and destroy it\n- **pause()**: `void` pause playlist playback\n- **resume()**: `void` resume playlist playback\n- **start(channel: VoiceChannel)**: `Promise\u003cvoid\u003e` start playback in a channel\n\n#### example\n```js\n// in your main file\nrequire('discord.js-music');\n\n// in some command\nconst playlist = message.guild.playlist;\nawait playlist.add(message.content);\nreturn playlist.start(message.member.voiceChannel);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappellation%2Fdiscord.js-music","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappellation%2Fdiscord.js-music","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappellation%2Fdiscord.js-music/lists"}