Fix automatic crosspost

This commit is contained in:
Christopher Cookman 2023-09-14 13:14:29 -06:00
parent ca451abfeb
commit e58c82f6da
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -82,7 +82,7 @@ bot.on("ready", () => {
}) })
bot.on("messageCreate", (msg) => { bot.on("messageCreate", (msg) => {
if(msg.author.bot) return; if(!msg.webhookId) return;
if (config.discord.channels.includes(msg.channel.id)) { if (config.discord.channels.includes(msg.channel.id)) {
msg.crosspost(); msg.crosspost();
} }