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
Tag: discord.js
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
Discord.js v13 Announce an Annoucement to a certain Channel
Expected I want to make a command that sends a certain message, given from a user (an admin) to a specific channel. What is going on I tried to send a reply to the user who invoked the command with the args they entered. Secondly, I made it so, that it joins every arg into an array and then replies
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
increment a value in an array if a match is found
so i’ve got the following array created using and with the following I’m trying to compare it to that gives me what a person has voted. what I’m trying to do is if a user votes something ex: movie#3 I want to look through movie.json and increment voteCount by one for movie#3. I’ve tried searching for a solution already and
Getting ‘undefined’ .hexAccentColor value even when force fetching user?
I’m trying to create an info command that pulls the specified users info. As per the discord.js docs, I’m force fetching the specified user to get the .hexAccentColor. The user I’m fetching does have an accent color, yet I get undefined as the value every time I try to get it. Here is my code: All the other information is
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
Message collector in Discord.JS not running
I have a basic command for testing the message collector feature on my discord.js v13 bot. The bot doesn’t crash when I run it, but the feature doesn’t load properly, as it has an error. The error is in the line inside the collector function when I call filter. The IDE gives me an error: Type ‘(m: Message) => void’
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
JavaScript, What have I done wrong? [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 1 year ago. Improve this question