Skip to content
Advertisement

Tag: discord.js

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

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

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’

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

Advertisement