mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
Added channelUpdate listener
This commit is contained in:
@@ -32,7 +32,7 @@ mybot.on("ready", function () {
|
||||
console.log("im ready");
|
||||
|
||||
for(var chann of mybot.channels){
|
||||
mybot.setTopic(chann, "HELLO I AM A BOT BOOP BOOP");
|
||||
mybot.setTopic(chann, "THINGS");
|
||||
}
|
||||
});
|
||||
|
||||
@@ -44,6 +44,12 @@ mybot.on("unknown", function(info){
|
||||
console.log("warning!", info);
|
||||
})
|
||||
|
||||
mybot.on("channelUpdate", function(oldChan, newChan){
|
||||
|
||||
console.log(oldChan.topic + " vs " + newChan.topic);
|
||||
|
||||
});
|
||||
|
||||
function dump(msg) {
|
||||
console.log(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user