I have been making a discord bot and wanted to make it send a message to a specific "Welcome" channel. Unfortunately, I have been unable to do so. I tried this.  const welcomeChannel = bot.channels.get("name", "welcome") welco...
I have an avatar command in my discord bot. When the user uses h.avatar, it outputs their avatar, which works fine. Whenever they try to use h.avatar @user, nothing happens.  Here is my code:   } if (message.content.startsWith(config.prefix + "av...
I am developing a chatbot using Dialogflow, I would like to throw a message to user when the chatbot doesn't understand the user input for three times in a row and for the forth time respond with a custom message (not the one of the options decla...
Context  I am using telegraf.js for more than 3 bots which run very well in plenty of groups.  Currently one of the bots needs to request for Display Picture of the user who does not have a display picture.  It works very well as expected but unfortu...
I must start this question by saying that I have very little knowledge of javascript (I'm practiced in Java) and just wanted to make a (somewhat) simple Discord bot that would say messages at random times. I Frankensteined 2 pieces of code from v...
I am trying to make a bot that fetches previous bot messages in the channel and then deletes them. I have this code currently that deletes all messages in the channel when !clearMessages is entered:  if (message.channel.type == 'text') {...
This is my current code. Credit goes to @André Dion for the help.    if (message.channel.type == 'text') {     message.channel.fetchMessages().then(messages => {         const botMessages = messages.filter(msg => msg.author.bot)...
I'm trying to add a NESTED persistent menu to my chatbot. Facebook has a limit of 3 buttons but you can have a nested button with a maximum of 5 buttons.   This is the error I get when I run my code     response body error      type: 'OAuthEx...
I'm trying to make a 'userinfo' command, and I'm currently stuck on showing roles of the user.  Here's my code:  const Discord = module.require('discord.js'); const moment = require('moment');  module.exports.run =...
Below is the output when running app.js. This started occurring totally at random when everything was working fine. Absolutely no changes were made.   TypeError: Cannot read property 'message' of undefined         at /home/ec2-user/environmen...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.