Playback control buttons
Closed this issue · 2 comments
For easy playback control using buttons attached to the now-playing message embed in the trackStart
event.
- play/pause button
- skip button
- queue list button
- disconnect/stop button
I was working on this feature and I used the new buttons that discord.js provides because that is the only method I know of adding buttons. But unfortunately, discord buttons only support discord.js V12 and not the latest V13 as this is what it says here:
Class extends value undefined
Although there is a fix as the answer stated, I don't know how to apply that 😫 (the patch-package method)
In case if you are downgrading discord.js, there might be some things that require changing (e.g. messageCreate -> message for stability purposes)
But if you found another method, it would really help because it might just be me being lazy.
But unfortunately, discord buttons only support discord.js V12 and not the latest V13 as this is what it says here: Class extends value undefined
I think they're talking about the discord-buttons package which was made before discord.js v13 was released because there was no proper way to add buttons back then.
I was working on this feature and I used the new buttons that discord.js provides because that is the only method I know of adding buttons.
In discord.js v13, this is a valid (and more complex) method to add buttons with no need for a separate package (like discord-buttons).
I've also tried following that tutorial last week for the next/previous buttons in the queue list command but I found it too confusing (and I was too lazy and didn't really understand how Interactions work) so I decided to install a package to easily make paged embeds with buttons. I'm planning to remove that package soon and rewrite the queue command once I learn how to make buttons from scratch.
I'll try to help you with this once I'm done with #2 and my schoolwork :)