mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
Fixed server update listener
This commit is contained in:
@@ -8,6 +8,9 @@ var a = new module.exports.Client();
|
||||
a.on("debug", function (m) {
|
||||
return console.log("[debug]", m);
|
||||
});
|
||||
a.on("warn", function (m) {
|
||||
return console.log("[warn]", m);
|
||||
});
|
||||
|
||||
a.on("message", function (m) {
|
||||
if (m.content === "$$$") a.internal.createServer("H a h").then(function (srv) {
|
||||
@@ -15,6 +18,9 @@ a.on("message", function (m) {
|
||||
a.reply(m, srv);
|
||||
});
|
||||
});
|
||||
a.on("serverUpdated", function (oldsrv, newsrv) {
|
||||
console.log(oldsrv.name, "v", newsrv.name);
|
||||
});
|
||||
|
||||
a.login(process.env["discordEmail"], process.env["discordPass"])["catch"](function (e) {
|
||||
return console.log(e);
|
||||
|
||||
Reference in New Issue
Block a user