Merge branch 'dev'

This commit is contained in:
2023-11-22 19:50:20 +01:00

View File

@@ -14,8 +14,9 @@ module.exports = {
execute(oldState, newState) { execute(oldState, newState) {
if (process.env.NODE_ENV === 'dev') return // if (process.env.NODE_ENV === 'dev') return
const guild = oldState.guild
const channel = guild.channels.cache.get(botLogChannel) const channel = guild.channels.cache.get(botLogChannel)
const embedColor = Number(color.replace('#', '0x')) const embedColor = Number(color.replace('#', '0x'))
@@ -26,7 +27,6 @@ module.exports = {
const oldChannel = oldState.channel const oldChannel = oldState.channel
const newChannel = newState.channel const newChannel = newState.channel
const guild = oldState.guild
if (oldChannel === null && newChannel !== null) { if (oldChannel === null && newChannel !== null) {