Skip to content

Commit

Permalink
revert: guild.available check
Browse files Browse the repository at this point in the history
d.js seems to have a bug where it's set to undefined
  • Loading branch information
SuperchupuDev committed Oct 10, 2021
1 parent e88a8f7 commit 1a1efb6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions events/guildCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = {
name: 'guildCreate',
once: false,
async execute(guild, client) {
if (!guild.available) {
return;
}
const channel = client.channels.cache.get(client.config.guildLogs);
channel.send({
embeds: [{
Expand Down
3 changes: 0 additions & 3 deletions events/guildDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ module.exports = {
name: 'guildDelete',
once: false,
async execute(guild, client) {
if (!guild.available) {
return;
}
const channel = client.channels.cache.get(client.config.guildLogs);
channel.send({
embeds: [{
Expand Down

0 comments on commit 1a1efb6

Please sign in to comment.