mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
bot debugs and minor bug fix
This commit is contained in:
2
index.js
2
index.js
@@ -437,7 +437,7 @@ exports.Client.prototype.sendMessage = function( channel, message, cb, _mentions
|
||||
} else if ( _mentions === true || _mentions === "auto" || _mentions == null || _mentions == undefined ) {
|
||||
//want to auto sort mentions
|
||||
_mentions = [];
|
||||
var mentionsArray = message.match( /<[^>]*>/g ) || [];
|
||||
var mentionsArray = message.match( /<@[^>]*>/g ) || [];
|
||||
for ( mention of mentionsArray ) {
|
||||
_mentions.push( mention.substring( 2, mention.length - 1 ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user