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
used --force and it fixed it
6 replies
DIAdiscord.js - Imagine an app
Created by The Blade on 11/15/2023 in #djs-voice
i don't know, never happened before
oh nvm
6 replies
DIAdiscord.js - Imagine an app
Created by The Blade on 11/15/2023 in #djs-voice
i don't know, never happened before
also i have no idea why this appeared, just tried making a new bot and this appeared
6 replies
DIAdiscord.js - Imagine an app
Created by The Blade on 11/15/2023 in #djs-voice
i don't know, never happened before
discord.js is 13.12.0 because i like this version and my node vesion is v18.13.0
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 was looking there, but only in AudioPlayer
22 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]
Thanks for the help
22 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]
Ah, thank you. The only things I could actually find were with "Idle" on stack overflow but they were telling me to do AudioPlayer.Idle, not AudioPlayerStatus.Idle
22 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]
Done
22 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 want the player to loop
22 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]
searching online right now, can't find anything besides idle which isn't even an option
22 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]
So whenever I can see a thing that might work, I don't have to delete it and can just put it in
22 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]
Yes, but before I was and that wouldn't work so I just kept it on '' while im searching online trying to find fixes
22 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]
const player = createAudioPlayer()
Currentplayer = player
joinVoiceChannel({
channelId: message.member.voice.channel.id,
guildId: message.guild.id,
adapterCreator: message.guild.voiceAdapterCreator
}).subscribe(player)

if (message.guild.me.voice.channelId === "1075934013946077204") {
message.guild.me.voice.setRequestToSpeak(true);
}

const resource = createAudioResource(currentSongLocation, {
metadata: {
title: 'A test song!',
},
inlineVolume: true,
});
player.play(resource)
resource.volume.setVolume(volume)
voiceChannelResource = resource
message.reply("Playing song, volume is " + resource.volume.volume)
player.on('', () => {
if (currentSong === null) {
player.stop()
resource = null
} else {
player.play(resource)
}
})
const player = createAudioPlayer()
Currentplayer = player
joinVoiceChannel({
channelId: message.member.voice.channel.id,
guildId: message.guild.id,
adapterCreator: message.guild.voiceAdapterCreator
}).subscribe(player)

if (message.guild.me.voice.channelId === "1075934013946077204") {
message.guild.me.voice.setRequestToSpeak(true);
}

const resource = createAudioResource(currentSongLocation, {
metadata: {
title: 'A test song!',
},
inlineVolume: true,
});
player.play(resource)
resource.volume.setVolume(volume)
voiceChannelResource = resource
message.reply("Playing song, volume is " + resource.volume.volume)
player.on('', () => {
if (currentSong === null) {
player.stop()
resource = null
} else {
player.play(resource)
}
})
Theres the full code
22 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 code outside of it to play it and it plays that, it doesn't trigger the player.on event though
22 replies
DIAdiscord.js - Imagine an app
Created by The Blade on 12/12/2022 in #djs-questions
Anybody know how to fix this?
Thanks but i have fixed it.
4 replies
DIAdiscord.js - Imagine an app
Created by JollyJohn on 12/12/2022 in #djs-questions
Interaction Failed to Reply
Do you have .setStyle?
18 replies
DIAdiscord.js - Imagine an app
Created by JollyJohn on 12/12/2022 in #djs-questions
Interaction Failed to Reply
I might know why but dont be 100% with this answer
18 replies
DIAdiscord.js - Imagine an app
Created by JollyJohn on 12/12/2022 in #djs-questions
Interaction Failed to Reply
Like does it add it or just not add it at all
18 replies
DIAdiscord.js - Imagine an app
Created by JollyJohn on 12/12/2022 in #djs-questions
Interaction Failed to Reply
Does it add the button to the message or does it error out?
18 replies
DIAdiscord.js - Imagine an app
Created by JollyJohn on 12/12/2022 in #djs-questions
Interaction Failed to Reply
I use 13.6.0 but it might work since its an interaction
18 replies