allow all guilds to send events
This commit is contained in:
parent
39458bd2bf
commit
3e4188a0c8
1 changed files with 0 additions and 2 deletions
|
@ -168,7 +168,6 @@ module.exports = {
|
|||
const channel = client.channels.get(message.channel_id)
|
||||
if (!channel.guild_id) return // Nothing we can do in direct messages.
|
||||
const guild = client.guilds.get(channel.guild_id)
|
||||
if (!isGuildAllowed(guild.id)) return
|
||||
|
||||
await sendMessage.sendMessage(message, guild),
|
||||
await discordCommandHandler.execute(message, channel, guild)
|
||||
|
@ -195,7 +194,6 @@ module.exports = {
|
|||
const channel = client.channels.get(message.channel_id)
|
||||
if (!channel.guild_id) return // Nothing we can do in direct messages.
|
||||
const guild = client.guilds.get(channel.guild_id)
|
||||
if (!isGuildAllowed(guild.id)) return
|
||||
await editMessage.editMessage(message, guild)
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue