mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Added permission
This commit is contained in:
@@ -29,6 +29,13 @@ mybot.on("message", function (message) {
|
||||
|
||||
mybot.on("ready", function () {
|
||||
console.log("im ready");
|
||||
|
||||
for(var server of mybot.servers){
|
||||
if(server.name === "test-server"){
|
||||
mybot.leaveServer(server);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
mybot.on("debug", function(info){
|
||||
|
||||
Reference in New Issue
Block a user