Adelto
Adelto
DIAdiscord.js - Imagine an app
Created by Adelto on 10/3/2023 in #djs-voice
Controlling volume
suppose this is my code:
const resource = createAudioResource('songs/skibidi.mp3');
const resource = createAudioResource('songs/skibidi.mp3');
how do i make this audio inline and how to control its volume? Also, what does inline audio do?
15 replies
DIAdiscord.js - Imagine an app
Created by Adelto on 9/27/2023 in #djs-voice
bot not joining
djs v14, voice 0.16 & node v18.12.1 i did try to console.log - here's my code:
if (message.content.startsWith('.vsaucemeup')) {
const { joinVoiceChannel, createAudioPlayer, createAudioResource } = require('@discordjs/voice');
const channel = message.content.split(' ?c ')[1]
console.log(channel)
const player = createAudioPlayer();
const connection = joinVoiceChannel({
channelId: channel,
guildId: message.channel.guild.id,
adapterCreator: message.channel.guild.voiceAdapterCreator,
});
const resource = createAudioResource('vsauce.mp3');
console.log(resource)
player.play(resource);
connection.subscribe(player);
}
if (message.content.startsWith('.vsaucemeup')) {
const { joinVoiceChannel, createAudioPlayer, createAudioResource } = require('@discordjs/voice');
const channel = message.content.split(' ?c ')[1]
console.log(channel)
const player = createAudioPlayer();
const connection = joinVoiceChannel({
channelId: channel,
guildId: message.channel.guild.id,
adapterCreator: message.channel.guild.voiceAdapterCreator,
});
const resource = createAudioResource('vsauce.mp3');
console.log(resource)
player.play(resource);
connection.subscribe(player);
}
and everything it gave checks out, but it isnt joining
10 replies