I’m trying to make a bot that lets users create embeds using a series of commands and its going well. But I encountered a problem, the bot uses buttons but to confirm something like “Are you sure this is your title?” any user can click the button; which is a problem. I only want the user who used the command
Tag: discord
Does anyone know how to create and delete a category with channels in Discord.js?
I am trying to get my discord bot to create a category that has 3 distinct channels, each with different permissions. I would also like a way to delete this category entirely at the end of my code. Any idea on how to do it? Answer There are multiple ways to do it. Here are 3 of them: Putting parent
My discord bot not updating status when it joins a new server
My bot not updating when someone invites my bot to their/another server. I have to restart the code, then it is working. I want that my bot updated when someone invites in status. My current code is: PREFIX = < Answer It seems you want to update the bot’s status whenever your bot joins a new server. Instead of using
Discord Bot – Wait for Reply after Interaction
Probably I didn’t understand quite well how Discord API works when we use awaitMessages. What I’m trying to do is to wait for a message from the user after a button was clicked in a private channel: As you can see, the user clicks on the button, a message is sent asking for the dialogue. After that the bot should
TypeError: Cannot Read function of ‘fetch’ of undefined (discord.js)
Ok so basically its showing me an Error that property of fetch dosent exist i am using the replit database for a balance command (discord.js) Error Image Here is the command file: So how do I fix the error Thanks In advance Answer Well client.db does not exist, this is what your error message is telling you. I am suggesting
Why am I getting: TypeError: channel.updateOverwrite is not a function
I’m following a tutorial on discord.js, making a ticket bot. I have double-checked and I am still getting the same error: TypeError: channel.updateOverwrite is not a function I’ve looked over all the StackOverflow questions that I could find, but none has worked for me. I have also explored a little deeper outside of SO, still no help. Here is my
Checking if a message was sent from a DM channel type not working
I am using Discord.js v12 and trying to check if a message was sent from a DM but it doesn’t work for me, I have tried this method: This was working fine couple months ago but it doesn’t work anymore. When i try console.log(msg.channel.type) it only returns text and doesn’t return dm when the bot gets an DM and I
What’s ExtendedMessage on discord.js
I’m on v12 and after a lot of time I decided to start coding again but I ran into a problem I can’t quite fix. At start I wanted to add a function to the Message class like so But after a while I saw that some messages I sent did not have this function and threw me an error
Message collector responds to other people’s messages
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
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