From f64dfc344cbed636923f4014c7b1166fce0af744 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 5 Jul 2024 20:04:31 -0600 Subject: [PATCH] fix get --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5af28c7..68c10ec 100644 --- a/index.js +++ b/index.js @@ -380,7 +380,7 @@ app.get("/report/:psk", (req, res) => { if (!row) { return res.status(404).send({ error: "Not Found" }); } - const channel = guild.channels.cache.get(row.id); + const channel = discord.channels.cache.get(row.id); const guild = channel.guild; const role = guild.roles.cache.get(row.role_ping); return res.status(200).send({ guild: guild.name, channel: channel?.name, role: role?.name, url: req.url, comment: "Use this URL in your SL server config in place of your Discord webhook URL!" });