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...
Right so what i want my bot to do is wait for a message from the user so "!spec" when it gets that message i want it to respond with "See or Change?" then wait for you to type back "see" or "change" but i cant get it t...
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 collect all users that have reacted to certain message. My code  client.on('messageReactionAdd', (reaction, user) => {     if(reaction.emoji.name === "?") {     console.log(reaction.emoji.users); }   But it return...
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 am currently making a discord.js bot for discord, but i'm getting the same issue all time :  ReferenceError: guild is not defined at Client.client.on.message (C:\Users\Valentin\Documents\JsBot_dev\bot.js:27:30) at emitOne (events.js:101:20) at...
I am making a welcome message but I can’t seem to make it say the rule channel. I want the bot to say #rules and make it so you can click it to go to the rules channel. I know you can do this with a normal user, but I want to do it with my bot. Eve...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.