Speaking 'start'/'end' events trigger continuously - Caused by while loop?
I have two ts at global level:
let startedSpeakingTimestamp;
let stoppedSpeakingTimestamp;
...How to check if a user is in a specific guild
Hey there,
I'm trying to make a command, that invites a person to a football club. Because, I don't want anyone to join that isn't in the main server, I wanted to check if the user is in the discord.
I've tried countless solutions, but nothing worked. I don't know why, but I hope that someone can help me with this problem....
How Can I make the bot leave a channel without having the connection that was created on his join ?
When the bot joins a channel it creates a connection with the joinVoiceChannel() function but when we reset the bot the voiceConnection is not kept so my question is how can I get the connection of the bot in a channel without having the first connection object ? My goal is to make him leave the channel.
set undefined
this.client.voice.adapters.set(this.id, methods);
^
TypeError: Cannot read properties of undefined (reading 'set')
at Object.adapterCreator (/home/container/node_modules/discord.js/src/structures/Guild.js:1415:34)
at new VoiceConnection (/home/container/node_modules/@discordjs/voice/dist/index.js:1683:29)...
unknown interaction
hello everyone
i have a ticket bot and when the admin want to close the ticket and press the button he gets โUnknown interactionโ and other times it works fine
how can i find the issue?...
discord voice engine
hello im just asking if someone got an alternative discord voice engine that work on windows
Bot joins the vc but audio doesn't play
yes the path is correct.
``js
var { voice } = message.member
if(!voice.channelId) return message.reply({content:
This command requires you to join a vc in this server. Get help`})...Audio Source
Hello i got a question
How can we play an audio with the Source Thing but Without Put The Whole File Path From the C: For exemple to the music we want to play
can we do something bc i need to put it on a server but it wont play bc idk what is the Disk of the server and others things...
Low audio quality issue
I'm using latest version of discord.js and discordjs/@voice but the quality of audio is much lower as compared to listening to same files on my PC. This is my code:
```js
const { createAudioPlayer, createAudioResource, AudioPlayerStatus } = require('@discordjs/voice');
...
Where about in connection am I able to tell if the bot is paused/unpaused
Using connection because i want to have it per guild
Bot Works Locally, In Production Player States Goes To Idle Straight Away?
Hi,
I'm having an issue with my bot in production. It works fine locally (macOS), but in production (Docker
node:20
image), the player state changes from playing
to idle
straight away:
```...Record users with high input sensitivity
I use the next code for recording speaking users
```ts
const connection = getVoiceConnection(<guild ID>);
const receiver = connection.receiver;
...
Audio recording stream
Hiya, I was wondering on how you now create audio streams? I only know is as
connection.receiver.createStream(message.member, { mode: 'pcm', end: 'silence' });
I want to use it so I can record the voice chat.
Thanks!...Bot dont Play audio
Hello my bot dont play but i dont know why
```
const voiceChannel = interaction.member.voice.channel;
const connection = joinVoiceChannel({
channelId: voiceChannel.id,...
Voice Connection Issue
So, the bot joins the discord voice channel, then displays this after 15 seconds and then doesn't do anything.
Node Version: V10.24.0
DiscordJS Version: 12.5.3
I can post the index.js in here if needed...
wait for bot to play audio
First time working with it,
I have a cron job running eery 5 minutes. In the callback, the bot fetches an array and loops over it. Each array has a mp3 and a channel id. Now i want to run each mp3 in its own channel.
Scenario:Bot runs the join function, a connection is created. It then listens to ready event and create a player to run audio on the connection.
...