Skip to content
Advertisement

How can I forward sent messages from one discord server to a separate channel in a different server [closed]

Title. I couldn’t find anything on this online or on stackoverflow.

Advertisement

Answer

What you could do is have a message event listener which collects all messages, and then use client.channels.cache.get("CHANNEL ID").send(message.content).

client.on("messageCreate", (message) => {
  if(message.guild.id !== "GUILD ID MESSAGES ARE RECEIVED IN") return;
  client.channels.cache.get("CHANNEL ID").send(message.content)
})
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement