mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fixed unavailable message
This commit is contained in:
@@ -778,6 +778,8 @@ var Client = (function () {
|
||||
return;
|
||||
}
|
||||
|
||||
self.trigger("raw", dat);
|
||||
|
||||
//valid message
|
||||
switch (dat.t) {
|
||||
|
||||
@@ -1150,7 +1152,7 @@ var Client = (function () {
|
||||
|
||||
if (data.unavailable) {
|
||||
self.trigger("unavailable", data);
|
||||
self.debug("Server ID" + +" has been marked unavailable by Discord. It was not cached.");
|
||||
self.debug("Server ID " + data.id + " has been marked unavailable by Discord. It was not cached.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -760,6 +760,8 @@ class Client {
|
||||
return;
|
||||
}
|
||||
|
||||
self.trigger("raw", dat);
|
||||
|
||||
//valid message
|
||||
switch (dat.t) {
|
||||
|
||||
@@ -1050,7 +1052,7 @@ class Client {
|
||||
|
||||
if(data.unavailable){
|
||||
self.trigger("unavailable", data);
|
||||
self.debug("Server ID" + + " has been marked unavailable by Discord. It was not cached.");
|
||||
self.debug("Server ID " + data.id + " has been marked unavailable by Discord. It was not cached.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ mybot.on("debug", function(info){
|
||||
console.log(info);
|
||||
})
|
||||
|
||||
mybot.on("unavailable", function(info){
|
||||
mybot.on("unknown", function(info){
|
||||
console.log("warning!", info);
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user