allow all guilds to send events

This commit is contained in:
Cadence Ember 2023-09-04 01:39:45 +12:00
parent 39458bd2bf
commit 3e4188a0c8

View file

@ -168,7 +168,6 @@ module.exports = {
const channel = client.channels.get(message.channel_id) const channel = client.channels.get(message.channel_id)
if (!channel.guild_id) return // Nothing we can do in direct messages. if (!channel.guild_id) return // Nothing we can do in direct messages.
const guild = client.guilds.get(channel.guild_id) const guild = client.guilds.get(channel.guild_id)
if (!isGuildAllowed(guild.id)) return
await sendMessage.sendMessage(message, guild), await sendMessage.sendMessage(message, guild),
await discordCommandHandler.execute(message, channel, guild) await discordCommandHandler.execute(message, channel, guild)
@ -195,7 +194,6 @@ module.exports = {
const channel = client.channels.get(message.channel_id) const channel = client.channels.get(message.channel_id)
if (!channel.guild_id) return // Nothing we can do in direct messages. if (!channel.guild_id) return // Nothing we can do in direct messages.
const guild = client.guilds.get(channel.guild_id) const guild = client.guilds.get(channel.guild_id)
if (!isGuildAllowed(guild.id)) return
await editMessage.editMessage(message, guild) await editMessage.editMessage(message, guild)
} }
}, },