fix get
This commit is contained in:
parent
72a51c4007
commit
f64dfc344c
2
index.js
2
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!" });
|
||||
|
|
Loading…
Reference in a new issue