1
0
Fork 0
llama-bot/src/util/isChannelInMessageNSFW.ts

10 lines
274 B
TypeScript

import type { Message } from "discord.js"
/**
* Checks if channel where the message sent is a NSFW channel.
*
* @param message - Message to get the channel
*/
export default function (message: Message): boolean {
return Reflect.get(message.channel, "nsfw") === true
}