LuckyBuda10
LuckyBuda10
DIAdiscord.js - Imagine an app
Created by wjael on 7/6/2023 in #djs-voice
Bot not outputting sound after joining the channel
I was so relived when i found that
23 replies
DIAdiscord.js - Imagine an app
Created by wjael on 7/6/2023 in #djs-voice
Bot not outputting sound after joining the channel
yea no problem
23 replies
DIAdiscord.js - Imagine an app
Created by wjael on 7/6/2023 in #djs-voice
Bot not outputting sound after joining the channel
thats my code if you're interested
23 replies
DIAdiscord.js - Imagine an app
Created by wjael on 7/6/2023 in #djs-voice
Bot not outputting sound after joining the channel
let connection = getVoiceConnection(message.guild);
if (connection === undefined) {
connection = joinVoiceChannel({
channelId: voiceChannel.id,
guildId: voiceChannel.guild.id,
adapterCreator: voiceChannel.guild.voiceAdapterCreator,
selfDeaf: false,
selfMute: false
});
}

let player = createAudioPlayer();
connection.subscribe(player);

const findVid = async (query) => {
const vidRes = await ytSearch(query);
return (vidRes.videos.length > 1) ? vidRes.videos[0] : null;
}
const video = await findVid(msgList.join(''));

if (video) {
const stream = ytdl(video.url, {
filter: "audioonly"
});
var resource = createAudioResource(stream);

player.play(resource);

starterEmbed.setTitle(`Now Playing: ${video.title}`);
starterEmbed.setImage(video.thumbnail);
starterEmbed.setFooter(`Requested by: ${message.author.}`);
} else {
return message.channel.send("Eror finding video");
}
let connection = getVoiceConnection(message.guild);
if (connection === undefined) {
connection = joinVoiceChannel({
channelId: voiceChannel.id,
guildId: voiceChannel.guild.id,
adapterCreator: voiceChannel.guild.voiceAdapterCreator,
selfDeaf: false,
selfMute: false
});
}

let player = createAudioPlayer();
connection.subscribe(player);

const findVid = async (query) => {
const vidRes = await ytSearch(query);
return (vidRes.videos.length > 1) ? vidRes.videos[0] : null;
}
const video = await findVid(msgList.join(''));

if (video) {
const stream = ytdl(video.url, {
filter: "audioonly"
});
var resource = createAudioResource(stream);

player.play(resource);

starterEmbed.setTitle(`Now Playing: ${video.title}`);
starterEmbed.setImage(video.thumbnail);
starterEmbed.setFooter(`Requested by: ${message.author.}`);
} else {
return message.channel.send("Eror finding video");
}
23 replies
DIAdiscord.js - Imagine an app
Created by wjael on 7/6/2023 in #djs-voice
Bot not outputting sound after joining the channel
turns out I didn't have this library installed. and installing it made everything work
23 replies
DIAdiscord.js - Imagine an app
Created by wjael on 7/6/2023 in #djs-voice
Bot not outputting sound after joining the channel
npm install @discordjs/voice libsodium-wrappers
23 replies
DIAdiscord.js - Imagine an app
Created by wjael on 7/6/2023 in #djs-voice
Bot not outputting sound after joining the channel
try running this command
23 replies
DIAdiscord.js - Imagine an app
Created by wjael on 7/6/2023 in #djs-voice
Bot not outputting sound after joining the channel
yo @! o _ o !
23 replies
DIAdiscord.js - Imagine an app
Created by wjael on 7/6/2023 in #djs-voice
Bot not outputting sound after joining the channel
im trynna find that out too @ me if you ever find it
23 replies
DIAdiscord.js - Imagine an app
Created by wjael on 7/6/2023 in #djs-voice
Bot not outputting sound after joining the channel
i am having a similar issue
23 replies
DIAdiscord.js - Imagine an app
Created by wjael on 7/6/2023 in #djs-voice
Bot not outputting sound after joining the channel
how can you use the createMediaStream() function
23 replies
DIAdiscord.js - Imagine an app
Created by LuckyBuda10 on 11/16/2022 in #djs-questions
Why would this not work
everything else works fine, but for some reason it says it cannot read the properties of STRING
8 replies
DIAdiscord.js - Imagine an app
Created by LuckyBuda10 on 11/16/2022 in #djs-questions
Why would this not work
8 replies
DIAdiscord.js - Imagine an app
Created by LuckyBuda10 on 8/29/2022 in #djs-questions
Tutorial Not Working
yea?
11 replies
DIAdiscord.js - Imagine an app
Created by LuckyBuda10 on 8/29/2022 in #djs-questions
Tutorial Not Working
I didn't really know what it meant, myb
11 replies
DIAdiscord.js - Imagine an app
Created by LuckyBuda10 on 8/29/2022 in #djs-questions
Tutorial Not Working
ah ok, i come from discord.py so the intents thing is new to me, thanks
11 replies