codePreviews: the world if people didnt intentionally try to break things

This commit is contained in:
Cynthia Foxwell 2022-12-16 17:41:47 -07:00
parent 25bb92dc74
commit 3980bf20f5

View file

@ -78,6 +78,7 @@ async function processFile(link) {
}
events.add("messageCreate", "codePreviews", async function (msg) {
if (msg.author.id == hf.bot.user.id) return;
if (!msg.guildID) return;
if (!(await hasFlag(msg.guildID, "codePreviews"))) return;