discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discords apps API.

Join

djs-questions

djs-voice

error

pls help
No description

@discord.js/opus vulnerability in dependencies

npm audit report semver <7.5.2 Severity: moderate semver vulnerable to Regular Expression Denial of Service - https://github.com/advisories/GHSA-c2qf-rxjj-qqgw...

Not hearing audio

Any idea why? ``js // Load up the discord.js library const glob = require("glob") // This is your client. Some people call it bot, some people call it self`, ...

Error: Cannot probe a readable stream in object mode

I'm getting this error when trying to create the audio resource for a track, my current code is: ```js // YouTubeMusicPlatform.openStream openStream(track: Track): Promise<Readable> { return new Promise((resolve, reject) => { ...
No description

Custom TTS bot cutting off early

I made a TTS bot earlier today and I’ve been trying to use it and it works and it creates the audio files and play them, however, it cuts off early like 95% of the time, but the audio file is fine, so it’s the bot who keeps cutting off, I’m using discordjs/voice and ffmpeg-static, idk what to do https://pastebin.com/giHPa0bW...

Not receiving events

so im trying to listen to voice events but i dont receive anything. I don't receive speaking events nor the received bytes... what could it cause? the bot is in my voice call and its not deafened AscShrug the code snippet: ```ts const connection = joinVoiceChannel({...

Opus not working on mac

When trying to use opus, I keep getting these errors when it attempts to install. When googling the issue, I found this github issue saying its something related to m1 macs and a certain PR fixed it. but its still there.
No description

Trying to make a tts join command, getting invalid string format error

I'm currently trying to use a SlashCommandBuilder to make a command that will make the bot join the vc and begin reading messages, however I keep getting invalid string format when I try deploying the command ```js const { SlashCommandBuilder, ChannelType} = require('discord.js'); const { joinVoiceChannel, VoiceConnectionStatus, AudioPlayerStatus, VoiceConnection, getVoiceConnection, createAudioResource, createAudioPlayer, NoSubscriberBehavior} = require('@discordjs/voice') ...

interaction.guild.members.me.voice.channel gives null response?

Tried grabbing the voice channel ID from where the bot was at, and I keep getting null or it won't change when the bot joins a new vc. ```js const { SlashCommandBuilder } = require('discord.js'); const { getVoiceConnection } = require('@discordjs/voice') ...

bot

how to make the bot 24 hours in voice channel

Creating a leave voice channel command for a bot

I have a working join command for discordjs v14, so now I'm trying to make a working disconnect command. code is here: ```js const { SlashCommandBuilder, ChannelType} = require('discord.js'); const { joinVoiceChannel, VoiceConnectionStatus, AudioPlayerStatus, VoiceConnection, getVoiceConnection, createAudioResource, createAudioPlayer} = require('@discordjs/voice') ...

Stop streaming audo after a short time

Hello I have a bot who stream audio in a channel but it work but in a coupe minute it will stop playing for no reason. There no visible erreur on the terminal... ```js this.on = true ;...

Bot not outputting sound after joining the channel

```js const play = async (song, connection, message) => { if (!song) { connection.leave(); return;...

Why this message spamming in the log

```js if (isjoinedchannel || ischangedchannel) { if(channelid == veri.bilgilendirmekanali){ const player = createAudioPlayer(); player.on(AudioPlayerStatus.Playing, () => {...

How do I get my bot to join a discord vc

Hello guys I'm simply just wanting to put my discord bot into a guild channel vc and thats it I aint tryna do anything else too crazy I'm just wanting it to be in there so I can keep tabs on it easier and also come back to it later and add some more vc related features.

Spotify

How can I play Spotify songs? Every npm package uses YouTube...

AudioResource not playing on Linux

I have a strange issue that I would assume is a dependency mismatch, however everything is in check. I play a URL audio source on my bot that will work on Windows but not on Linux; no errors occur, the audio resource just never plays. ```js let resource = createAudioResource(song.track.preview_url) //Something like p.scdn.co/mp3-preview/8129d5338c56d78f5712fc95d246198da5261854?cid=4c5368cfdc084da795955dd07534fa1e audioplayer.play(resource) console.log(song.track.preview_url)...

I have an error

Hello, i'm programming a bot who play sounds in a voice channel, but when I execute my command !play with the URL he says "voiceChannel.join is not a function, how can I fix it ? https://pastebin.com/T6TpbNsR here the code Thanks !...