Skip to content

Commit

Permalink
fix: check for guild.available instead of guild.deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Oct 1, 2021
1 parent 675756b commit 385e8c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion events/guildCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
name: 'guildCreate',
once: false,
async execute(guild, client) {
if (guild.deleted) {
if (!guild.available) {
return;
}
const channel = client.channels.cache.get(client.config.guildLogs);
Expand Down
2 changes: 1 addition & 1 deletion events/guildDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
name: 'guildDelete',
once: false,
async execute(guild, client) {
if (guild.deleted) {
if (!guild.available) {
return;
}
const channel = client.channels.cache.get(client.config.guildLogs);
Expand Down

0 comments on commit 385e8c4

Please sign in to comment.