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!" });