The Blade
The Blade
DIAdiscord.js - Imagine an app
Created by The Blade on 11/15/2023 in #djs-voice
i don't know, never happened before
Error: Cannot find module 'D:\test\vv\node_modules@discordjs\voice\dist\index.js'
6 replies
DIAdiscord.js - Imagine an app
Created by The Blade on 2/17/2023 in #djs-voice
How do I detect once the music has finished (djs v13.12.0) [Solved]
I have messed around with the player.on() function with createAudioPlayer and such but I can not find a solid way to loop it? Heres my code:
player.on('stateChange', () => {
if (currentSong === null) {
player.stop()
resource = null
} else {
player.play(resource)
}
}
player.on('stateChange', () => {
if (currentSong === null) {
player.stop()
resource = null
} else {
player.play(resource)
}
}
I have tried unsubscribe, state change, idle and error and every single one just doesn't work Can somebody help me? I do not have any errors at all in the output and I put a console.log in the player and it wouldn't print anything
22 replies
DIAdiscord.js - Imagine an app
Created by The Blade on 12/12/2022 in #djs-questions
Anybody know how to fix this?
anybody know how to get a message.reply? thing?
let message = message.reply({
content: "How are you today?",
components: [row],
})
let message = message.reply({
content: "How are you today?",
components: [row],
})
Its gives an error im trying to delete it but now its giving an eror
4 replies
DIAdiscord.js - Imagine an app
Created by The Blade on 12/8/2022 in #djs-questions
Error with date.now()
I'm making a bot which you can put how many seconds you want into the future and it tells you how long until then whenever you run another command, I have all that working but.. whenever i do the command to tell me how long i have left, It just says things like "168495754630". Anybody know how to fix this (discord 13.6.0)
9 replies