Skip to content

0xdevar/discord-mv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Thread Migrator

A Discord bot that migrates messages from one forum thread to another forum channel or existing thread.

Features

  • Migrate messages to a forum channel (bot creates new thread)
  • Migrate messages to an existing thread
  • Skip first N messages with skip option
  • Include "Moved by" attribution
  • Lock the source thread after migration
  • Archive (close) the source thread after migration
  • Preserves message content, attachments, embeds, and author avatars
  • Only migrates non-bot messages
  • Role-based access control
  • Prevents concurrent migrations

Setup

cargo build --release

Configure environment variables:

DISCORD_TOKEN=your_bot_token
DISCORD_GUILD_ID=your_server_id
DISCORD_ROLE_ID=role_allowed_to_use_bot

Usage

Run /mv from a forum thread with:

Option Description
channel Target forum channel (bot creates new thread)
thread Existing thread to send messages to
skip Number of messages to skip from start (default: 0)
with_author Include "Moved by" message (default: true)
lock Lock the source thread after migration (default: true)
close Archive (close) the source thread after migration (default: true)

Examples

/mv channel:#general           # Create new thread in #general
/mv thread:#existing-thread    # Send to existing thread
/mv channel:#general skip:5    # Skip first 5 messages
/mv thread:#x with_author:false  # No attribution
/mv channel:#general lock:false close:true  # Archive but don't lock

About

Move entire channel/thread to another channel along with comments 🥡

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages