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...
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...
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 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...
So I have been utterly frustrated these past few days because I have not been able to find a single resource online which properly documents how to find emojis when writing a discord bot in javascript. I have been referring to this guide whose docume...
So I'm trying to create my bot and I want there to be a command which adds information to a sqlite database  https://gyazo.com/6961a05dc2d6aeca6683b59f888c2e82  if (command === "addplayer") {   message.delete()   let [name, crew, rank, we...
I have recently created a bot for my discord server. Now I want him to filter bad words.  For example:    User (without bot): You are an asshole    User (with bot): You are an [I'm stupid because I swear]    Is this even possible in Discord? I ha...
I am currently coding my first discord bot, it can already play YouTube music.  if (message.content.includes("Good Job") ||      message.content.includes("good job")) {     message.channel.sendMessage("Good Job everyone :smirk:...
I am a web developer for a web site that is occassionally plagued by form bots. Recently I received an error notification of a problem with the form submission that should be impossible for a human user. You cannot submit the form without JavaScript...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.