mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
small fixes and additions to examples, added deepFilter to list
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* starts up or shuts down, respectively.
|
||||
*/
|
||||
|
||||
var Discord = require( "discord.js" );
|
||||
var Discord = require( "../" );
|
||||
var myBot = new Discord.Client();
|
||||
|
||||
myBot.login( "hello@example.com", "password1" );
|
||||
@@ -19,6 +19,6 @@ myBot.on( "ready", function() {
|
||||
// ended.
|
||||
// It is also triggered when the connection attempt fails, for example due
|
||||
// to a wrong password.
|
||||
myBot.on( "disconnected", function() {
|
||||
console.log( "Bot disconnected from Discord." );
|
||||
myBot.on( "disconnected", function(e) {
|
||||
console.log( "Bot disconnected from Discord -", e.reason );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user