Skip to content

Script that copies all the messages of a Discord channel, mimicking the Author by means of a webhook.

License

Notifications You must be signed in to change notification settings

Kamesuta/discord-channel-message-cloner

Repository files navigation

English | 日本語

Discord Channel Message Cloner

This is a tool to clone an entire Discord channel.

  • It copies all the messages within the channel.
    • The channel itself is not copied. Please use Discord's features to duplicate it.
  • The names and icons of the message senders are pseudo-copied. (Using webhooks)
  • It is also possible to clone into forum threads.

スクリーンショット

Required Permissions

  • Message Content Intent is required to retrieve messages.
  • Webhook creation permission is required on the server to use webhooks.

Usage

  1. Copy .env.sample and save it as .env.
  2. Replace the DISCORD_TOKEN in .env with your own bot token.
  3. Install dependencies with npm install.
  4. Start the cloning process with npm run start <source channel ID> <destination channel ID>.

Resuming the Cloning Process

If the cloning process stops in the middle, you can resume it from where it left off by following these steps:

  1. Take note of the ID of the last copied message.
  2. Resume the process by running npm run start <source channel ID> <destination channel ID> <ID of the last copied message>.

Limitations

  • Information such as threads and reactions cannot be copied.
  • Due to limitations of the Webhook API, reply information is not preserved.
  • Special messages such as user join messages or boost messages cannot be copied.
  • Message posting timestamps are not copied.

License

This project is released under the MIT license. For more information, see LICENSE.

About

Script that copies all the messages of a Discord channel, mimicking the Author by means of a webhook.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published