Closed jkomoros closed 3 years ago
Well darn it, looks like slash commands are not legal to issue in the UI when responding to a message, and there's no type of field in a slash command for a given message ID. So we'll need to figure out a different interaction pattern than replying to a message you want to use as an OP with the '/fork' command.
This machinery with slash commands is useful, so I don't want to get rid of. Maybe have an /archive
command to start, which just archives a thread?
If someone replies to any message in any channel and uses the magic command, then the bot should create a new thread starting with the message that it's in reply to.
At the beginning, it will be a slash command reply that is in reply to the message that should be the new OP.
The thread OP should be a copy/paste of the message, with a link back to the original (using a channel reference, an actual link, and an @mention of the user).
In the future (once #35) is supported, when we can rename threads by tfidf words, then it should be possible to fork a thread merely by hitting the 🍴 emoji reaction on a post and have it auto named based on the contents of the OP.
Originally captured in #19