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...
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 want to say that I am French, and I apologize for the mistakes.  I try to code a discord bot with node.js, but i have a problem with messageReactionAdd i don't now why he do nothing when i react with an emoji.  My code :  bot.on('messageRea...
I'm looking for a way to get data from this Collection.  The data looks like:    '0000000' => GuildMember {   guild:    Guild {      members: [Object],      id: '000000',      name: 'Zombie',      _rawVoiceStates: [Obje...
I'm making a discord bot, and I'm trying to make use of the createChannel function shown here in the documentation. For some reason, I am getting the following error:  TypeError: bot.createChannel is not a function.  My code is within a funct...
Basically I'm trying to create a website that requires interfacing with the Discord API to retrieve user information to work.  To do this, I am using a library called Simple OAuth (https://github.com/lelylan/simple-oauth2) and cannot get my autho...
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 =...
I am fairly new to JS, and to learn I decided to make a bot for Discord, I have learned a lot and am continuing to learn. I had the idea for an "autorole". I know the conventional way of doing it.  bot.on('guildMemberAdd', member =>...
So I have this code that someone had posted from awhile back. It has been working flawlessly for a year now. It takes the google form answers and posts them to discord channel as a webhook. Now since yesterday, it is not working anymore. Nothing has...
I have managed to make the unban command to work, but now I need to make a condition to avoid errors, and need to put the unban code inside the condition if the user is in the ban list, but I have no idea how and haven't seen anything on internet...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.