This commit is contained in:
Christopher Cookman 2024-07-05 20:04:31 -06:00
parent 72a51c4007
commit f64dfc344c
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

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