I’m trying to make a collector which will collect the mentioned user’s message. But even with filter my bot respond to it’s own message and other peoples messages! Here is my test.js file code: I was changing my filter many times, but I still can’t fix this problem, so what am I doing wrong? Also I use djs v13 Answer
Tag: discord.js
TypeError: client.voice.createBroadcast is not a function
This is my code: Output comes out with an error: I am using Node:17.0.0 and Discord.js:13.1.0 I am not sure why I am getting this error. Answer Discord.js v13 no longer supports voice. The new way to join a VC and play audio is with the @discordjs/voice library. Unfortunately, discord-tts might be deprecated. You can record your own user client
How do I delete a user’s new message
I’m pretty trash at coding so I need a little bit of help. I’m trying to code my discord bot to delete someone’s messages for one minute after they click a react emoji. It sounds simple but for my tiny pea brain, it’s not. This is what I have got so far. It deletes all messages from different users and
Discord.js (v13) SlashCommandBuilder addIntegerOption set Range
I want to write a slash command that clears messages. Everything is fine, but there one thing I couldn’t really figure out: How would I set the range for an integer option in a slash command build, or is there even something like this or do I need to do the old-school way and response that the value is out
build error on heroku; trying to make a discord bot
I’m trying to have a discord bot on 24/7 using heroku, but I’m having this build error. I’ve asked multiple people and I haven’t gotten a response. If anyone can help, much appreciated! Answer Check out your package.json, you are trying to install Discord.js v16.11.0. That is not a thing yet, the latest version is v13.2.0
Unexpected token error in the discord.js bot’s code
So i was making a logger that basically logs all the nick role or username changes etc using discord.js documentation. Someone helped me to get this code but when I tried running it, it gives me an error. The code: I am really new with js so it might be a really stupid error The error: Can someone help me
discord.js v13 temp voice channels – joinVoiceChannel() @discordjs/voice
I am trying to add a command, that allows the creation of temporary voice channels. I have created a new client within this command to try and get the joinVoiceChannel() params another way. File: Error: Answer joinVoiceChannel does not create a voice channel, it creates a voice connection. You need to use GuildChannelManager.create instead. Here is how:
My bot can’t take errors when failling to run a “join” voice channel command
I’m currently coding a discord.js bot and I made this join command so the bot can join my voice channel The problem is that I have no idea how to make it so that if the last function gets an error or doesn’t work at all It can send an error message to the user like @User, I could not
Discord bot not responding/reacting to anything (JS)
So I am new to the world of discord bots and wanted to try myself on this new challenge. I got the foundation running after watching a few tutorials and reading a few posts but now my problem is that the bot doesn’t react to anything after starting up… All it does is displaying: ‘Ready!’ in the console. After that,
How to use syntax highlighting for code Blocks for Bot in discord.js (v13)?
I am trying to make a terminal accessible in the discord using the bot. The code for this command is : When i run the command the syntax highlighting isn’t displayed in the code Block. I have attached a picture of what i meant. Image 1 Image 2 Answer I found the answer. Sorry for the inconvenient post, In case