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...
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...
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, one day I was using TeamViewer to connect to my RPi3 and told it to reboot. As soon as it finished, I connected to the pi, started the bot, and it looked like it was starting up properly.  When I went to send a command on discord, the bot didn...
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...
This is my code  and the values keep being undefined https://cdn.discordapp.com/attachments/501784044649054231/509529437419732994/unknown.png  This code is suppose to be   !rebirth 1 1 1    and it should reply in embed  Collective cash  1 Lifecoins...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.