mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Updated bot and added some more helpful features, such as isPM to messages to discover whether a message is from a PM
This commit is contained in:
4
index.js
4
index.js
@@ -120,6 +120,10 @@ exports.Client.prototype.login = function( email, password ) {
|
||||
|
||||
exports.Client.prototype.reply = function(){
|
||||
|
||||
if(arguments[1] instanceof Array){
|
||||
arguments[1] = arguments[1].join("\n");
|
||||
}
|
||||
|
||||
arguments[1] = arguments[0].author.mention() + ", " + arguments[1];
|
||||
|
||||
this.sendMessage.apply(this, arguments);
|
||||
|
||||
Reference in New Issue
Block a user