Toidi357
DIAdiscord.js - Imagine an app
•Created by Toidi357 on 6/24/2024 in #djs-voice
Troubleshooting tips for AudioPlayer stuck buffering
Latest packages of everything, going through the cycle of
-> join VC and get a VoiceConnection object
-> create an AudioPlayer and do a VoiceConnection.subscribe() to the player
-> create a valid AudioResource with stream type "opus"
-> AudioPlayer.play(AudioResource)
then the player goes from idle to buffering and that's all
2 replies
DIAdiscord.js - Imagine an app
•Created by Toidi357 on 8/30/2023 in #djs-questions
Is there a character limit to the .setLabel() field in the StringSelectMenuOptionBuilder?
title
4 replies
DIAdiscord.js - Imagine an app
•Created by Toidi357 on 7/19/2023 in #djs-voice
How do I check how long a resource has been playing for?
Newest version everything, how can I check, whether through an audioPlayer or voiceConnection object, how long a certain audioResource has been playing for? Thank you
3 replies
DIAdiscord.js - Imagine an app
•Created by Toidi357 on 7/18/2023 in #djs-questions
Attaching a select menu to a message
My code:
When this code runs, my bot only sends "hi" and that's it, no select menu or any component. Can someone help me get the select menu included with the message? Thanks
6 replies
DIAdiscord.js - Imagine an app
•Created by Toidi357 on 9/12/2022 in #djs-voice
Where can I find how long an AudioPlayer has been playing an AudioResource?
Using latest version of @discordjs/voice
the closest thing that I found was AudioResource.playbackDuration but that gives the whole length of the resource, not how much has been played and how much is left to play
4 replies
DIAdiscord.js - Imagine an app
•Created by Toidi357 on 9/4/2022 in #djs-voice
Does PlayerSubscription automatically destroy if I call VoiceConnection.destroy()
Or do I need to
subscription.unsubscribe()
to prevent memory leaks, etc3 replies
DIAdiscord.js - Imagine an app
•Created by Toidi357 on 9/4/2022 in #djs-voice
List of events emitted by AudioPlayer?
https://discord.js.org/#/docs/voice/stable/typedef/AudioPlayerEvents doesn't have any information
Where is this list of all events that AudioPlayer can emit?
10 replies