ItsActuallyTJ
ItsActuallyTJ
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 10/5/2023 in #djs-voice
Local Audio Streams
const playAudioInVoiceChannel = async (interaction, filePath) => {

console.log('playing!')

const connection = joinVoiceChannel({
channelId: interaction.member.voice.channelId,
guildId: interaction.guild.id,
adapterCreator: interaction.guild.voiceAdapterCreator,
});

let src = await createAudioResource(filePath, {
inputType: StreamType.Arbitrary,
});

const player = await createAudioPlayer();
await connection.subscribe(player);
await player.play(src);

console.log('finished!');
};
const playAudioInVoiceChannel = async (interaction, filePath) => {

console.log('playing!')

const connection = joinVoiceChannel({
channelId: interaction.member.voice.channelId,
guildId: interaction.guild.id,
adapterCreator: interaction.guild.voiceAdapterCreator,
});

let src = await createAudioResource(filePath, {
inputType: StreamType.Arbitrary,
});

const player = await createAudioPlayer();
await connection.subscribe(player);
await player.play(src);

console.log('finished!');
};
10 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 10/5/2023 in #djs-voice
Local Audio Streams
not sure if it matters, but im running all this in es6 format
10 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 10/5/2023 in #djs-voice
Local Audio Streams
djs: 14.13.0 node: v18.17.1 djs voice: 0.16.0
10 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
Oh well, thanks for the help anyhow
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
I don't believe so, it's def possible but I could have sworn I double checked that
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
strange
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
looks like that did the trick
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
thanks for the help though
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
:((
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
ill try making a new bot or something
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
yeah its really strange
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
i've never had an issue with this before
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
did they change the ability for unverified bots to have access? that would be quite annoying
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
all the others work
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
looks like MessageContent and GuildMembers trip the error
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
im going to go thriough and enable the intents one by one
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
its okay I appreciate the help
61 replies
DIAdiscord.js - Imagine an app
Created by ItsActuallyTJ on 6/24/2023 in #djs-questions
Used disallowed intents
61 replies