Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Adds a voice channel status with the currently playing song title! #482

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

imnaiyar
Copy link

@imnaiyar imnaiyar commented Feb 24, 2024

Features added!

  • Updates the voice channel status with song title when player starts
  • Resets it when player is stopped or queue ends
  • Shows 'Paused' when player is paused and 'Playing' when resumed
  • See attachments for references
    Voice channel status is only available on desktop clients, and bot needs 'Set Voice Channel Status' permission to perform these actions, it can also be edited by anyone with the permission, so they could change it to something else after the bot
    See relevant Discord API PR About this feature:- discord/discord-api-docs#6400

Changes are commented in each respective file.
I couldn't find some events in the lavaclient docs necessary for some of the features so I emitted custom events where applicable

This endpoint is undocumented and experimental and as such not possible through discord.js (yet). As it is undocumented, it may also be unstable

Please feel free to edit to improve or fix as you see fit.
Screenshot (78)
Screenshot (80)

Checklist

  • Tested Locally
  • Extensive Testing
  • No Conflicts
  • No Errors
  • Stable

@imnaiyar imnaiyar changed the title [Feature] Adds a voice channel status with current player song title! [Feature] Adds a voice channel status with the currently playing song title! Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant