fix(bots/discord): remove bad text channel checks

This commit is contained in:
PalmDevs
2024-08-02 18:42:53 +07:00
parent 412e00317d
commit f5939e2528
3 changed files with 4 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ export const getLogChannel = async (guild: Guild) => {
try {
const channel = await guild.channels.fetch(logConfig.thread ?? logConfig.channel)
if (!channel || !channel.isTextBased())
if (!channel?.isTextBased())
return void logger.warn('The moderation log channel does not exist, skipping logging')
return channel