showing results for - "how to read if a person has send a message on discord js"
Aarón
14 Jul 2019
1if(message.author.id === client.user.id) return;
Garance
10 Feb 2020
1client.on('message', message => {
2  // this function can check whether the content of the message you pass is the same as this message
3  let filter = msg => {
4    return msg.content.toLowerCase() == message.content.toLowerCase() && // check if the content is the same (sort of)
5           msg.author == message.author; // check if the author is the same
6  }
7
8  message.channel.awaitMessages(filter, {
9    maxMatches: 1, // you only need that to happen once
10    time: 5 * 1000 // time is in milliseconds
11  }).then(collected => {
12    // this function will be called when a message matches you filter
13  }).catch(console.error);
14});
queries leading to this page
if message author bothow to display your bot 27s tagcheck if message was sent by certain user discord jsdiscord js multiple mentionsget person who said a message discord jsdetect when user has said message after command discord jscheck if an id is from a message discord jsdiscord js get if user is a bothow to know if user is a bot discord apifind channel id from args discord jscheck first mention discord jsdiscord js how to check if a certain user id sent a messagediscord js get array mentionshow to check if a message mentions a user discord jscheck who sent the message discord jsmessage author bot discordcheck if user sent a message discord jsdiscord api how to recieve the author of a given text messageif message was send by bot discord jsdiscord js if 28message author id 3d 3d 22 22 29 not workinghow to verify args is a mention in jscheck if user mentioned is message author discord jsif message author idhow to check if someone sent something in discord jscheck if a message exists discord jshow to check if a person is the bot owner in discord uphow to neglect commands that are not in your code discord jdcheck if user reacted to a message discord jsdiscord js check if someone is looking at chatdiscord js if message sentcheck if a message has a number discord jsdiscord js check if user is bothow to check if someones dm 27sis off discordjshow to read if a person has send a message on discord jshow to tell if a message sender was a bot discord jscheck who sent discord message discord jshow to check if a member is a bot discord jsdiscord js if message autor is botcheck if message is an anoucnement discord jsremove first mention args discord js how to check if message is from a bot discord jsdiscord js if user is bot ownerhow to check if the person is a bot discord jshow to check if message is from botdiscord js message content finish withhow to check if a message was sent discord iodiscord js if message author is botdiscord js check if user is a botdiscord js bot add to author messagehow to check with discord js a message from a specific userif user send discord jsdiscord js check if message is in serverhow does discord js know a message has been sendif message is from user then discord jscheck if message was send discoord jshow to check if a message is sent discord jsdiscordjs if message content userif message is sent in a specific chat discordjscheck if person who joined is a bot discord jsdiscord js author checkdiscord js check if message sent if msg author sent a messagediscord js how do bots check if a message was sent by a useris message author is js discordhow to find out if message is sent by bot discord jssend a message that only a person can read discord jsdiscord js bot catches user mentionhow to check for a message by a certain user discord jshow to check if message is from client discord jscheck if bot gets mentioned discord jsif message has been sent discord jsdiscord js check if user is bothow to get the first person who is mentioned nodehow to check who sent the message is in discordjshow to get a particular person in discord jsif message authordiscord js respond commanddiscord js get when message was sentdiscord js user commanddiscord js check if member is a bothow to check if a message is sent from a certain user in discord jsdiscord bot check for check if user is a bot discord jscheck if user is in a certain server discord jscheck what user sent message discordjscheck if message is sent in channel discord jsif args is not a mention jshow to 40 the message author in discord jsdiscord js message mentions users first 28 29 errorcheck if message has mention discor jscheck if message not sent by bot discord jsusing message argsdiscord js mention is not definedhow to see if user reacted to message discord jsdiscord js user that did commanddiscord bot how to see if a message has sent by bothow to see if someone has typed more than 5 messages in a row discord jssend message by if discord jsdiscord js bot checkerdiscord js detect if message is user iddiscord js message channel typif message author 3d 3d client userhow to tag a person in console discord jsdiscord js 11 to 12 regexdicsord js user onto something elsecheck if user sends message discordsee if bot sent the messageif message fails to send discord jsdiscord js remove mentionshow to make person side variables in discordjsmessage only for a person discord jsdiscord js test if user can receive pminput id for message discordcommand if the bot got mentioned discord jscheck if a message is sent by a specific player discord jsdiscord js if message had senddiscord js tag commanddiscord js remove mentions from messagehow to check if the client is a bot jsdiscord js check if message from a specific userdiscord detect when bot is addeddiscord js respond with prefix when mentionedcheck if message contains discord jscheck if message mentioned specific user discord jsdelete message with a user mention discord jsdiscordjs remove tag from messagecheck if message sent by user discord jsdiscord js don 27t detect message mentions users first 28 29detect from who a message is sent discord jshow to access the second mention in a message discordjshttp 3a 2f 2fmessage author bot 2ftag the user who ran the command discord jsdiscord js check for botsmessage author clientdiscord js get author mention from messagediscord js mention a specific userget message author status with bothow to turn users into bots discord jsdiscord js check if bot is mentionedhow to check for a certain username mentions discordjs bot 3fdiscord js messagementionsdiscord js if message member is bot owner commandhow to check who send the message discord jsdiscord js message members mentions first 28 29 username returns undefinedif user is new to bot sent something discord jsdiscord bot js how to name of message autoerif message content first mentionconst taggeduser 3d message mentions users first 28 29 3b if 28taggeduser 3d 3d 3d 24 28taggeduser 29 29 7b client commands get 28 27xd 27 29 execute 28message 2c args 29 3bhow to send message on discord bot using discord js while mentioning the users nameif message is send by user discord jshow to check when a message was sent on discord jshow to check that how much message has user send in discord jsdiscord js message mentions users first 28 29 erroeif message content startwith mentionhow to make discord js mention the authorhow to check if message includes 40everyone discord jsdiscordjs check message sent byhow to know if a message was sended by a bot discordjsdiscord js kick by mentioncheck if message equals something discord jsmessage mentions users firstaccept a command only if it have been sent by a user discor jsdiscord js storing user tagsdiscord js how to know if user is botdiscord js bot mentioncheck if bot can send message to user discordjsif message member botcheck if user has reacted to a message discord jshow to return a message if a mention couldn 27t be dmeds discord jscheck if user sendsa message discord jscheck if messafe was sent by a bot discord jsdiscord js if message has sentdiscord js check if user isnt a botdiscord js if user is botcheck if member is bot discord jshow to test if the message have a user id discord jscheck if the args is a mention discord jsdiscordjs if message contentcheck if a message still exists discord jshow to check who sent message discord jshow to check when a message was sent on discord jsdiscord js get message by userhow to check if a bot has been mentioned discordjs bot 3fjs detect if arg is a mentionhow to see if a user has send a message discord jsmessage send prevent mentions on message stringhow to get who send a message in discordjsmessage mentions members first 28 29discord js check direct messagediscordjs message by bot checkhow to check if a user sent a message in discord jshow to check if a certain user said something in discord jshow to check if a message mentions a user discordjsdiscordjs check if first argment is a mentionhow to check if a user send a command discord jshow to check if a message is sent from a certain user in discord ksdiscord js if message contains mention userdiscord pythin get mention arrayhow to make discord js respond to messages with any part of their content containing somethingdiscord js check if botownerhow do i pass message onto function discord jsdiscord js how to check who sent a messagediscord bot detect sent messageif author of message is bot return 3b discord jsdiscordjs check if can send messageheck if an arg includes mentionif message author id was from the bot ownerdiscord js bot detect messagehow to check if a message mentions a user discord 2cjsseeing if user is bot discord jsdiscord bot prefix as mentioncheck if message is sent by user discord jsdiscordjs check if message is ownhow to check if a message is the same message in discord jsmessage mentions members first 28 29 discord jsdelete mention from args discord jssay command without tagging discord jsjson list of random discord join messagesdiscord js msg author botdiscordjs check if message has been senddiscord js check if message is from userdiscord js msg author botif message is from user id then discord jscheck message sent discord jscheck if user sends message discord jsdiscord js how to make if someone just sends a messagehow to test if a specific user sends a message in discord jsdiscord js check if user is bot ownercheck if message come from user id discord jsauthor discord jsexecute command if certain user discord bot codingcheck if bot sent message discord jscheck if message in server discord jsif message 27s sender is a bot discord jshow to read if a person has send a message on discordcheck if message author is bot discord jscheck if message was sent by someone discord jsif user send this or that discord jshow to read if a person has send a message on discord js