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...
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...
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 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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.