resource.volume.setVolume returning error
I`m trying change volume in my bot, but when i try to change the volume it gives me the error
my code is
i using sodium lib libsodium-wrappers, my opus lib opusscript
Thanks!
20 Replies
i add inter.guildId when i start music
I guess the problem is that resource.volume is undefined, but why
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
•
ReferenceError: "x" is not defined
: learn more
• TypeError: Cannot read properties of undefined/null (reading "x")
: learn morefirst i start the music but when i run the volume command it gives an error
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
btw i did if(!c.data.voice[inter.guildId]) but i excluded it
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yes
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
console.log(resource.volume) (in playmusic) returning undefined
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
wha
there is Russian because the bot is Russian
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
by the way, pure JSON in data, because when I make parameters in Subcommand, it somehow sideways thrusts into the command itself and not into subcommand
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
by the way, maybe this is a mistake like, you need @discordjs/opus for this and not opusscript
wait.
later..
i fixed
i uninstalled opusscript, installed @discordjs/opus, in createAudioResource setted inlineVolume:true
i close it in 5 minutes