Fix automatic crosspost
This commit is contained in:
parent
ca451abfeb
commit
e58c82f6da
2
index.js
2
index.js
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue