mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
Fixed server update listener
This commit is contained in:
@@ -4,6 +4,7 @@ module.exports = {
|
||||
|
||||
var a = new module.exports.Client();
|
||||
a.on("debug", (m) => console.log("[debug]",m));
|
||||
a.on("warn", (m) => console.log("[warn]", m));
|
||||
|
||||
a.on("message", m => {
|
||||
if(m.content === "$$$")
|
||||
@@ -12,5 +13,8 @@ a.on("message", m => {
|
||||
a.reply(m, srv);
|
||||
});
|
||||
});
|
||||
a.on("serverUpdated", (oldsrv, newsrv) => {
|
||||
console.log(oldsrv.name, "v", newsrv.name);
|
||||
});
|
||||
|
||||
a.login(process.env["discordEmail"], process.env["discordPass"]).catch((e)=>console.log(e));
|
||||
Reference in New Issue
Block a user