EthanThatOneKid / gitcord

😎 expand GitHub into Discord
MIT License
5 stars 2 forks source link

Slash command: Archive #13

Open EthanThatOneKid opened 1 year ago

EthanThatOneKid commented 1 year ago

Background

Closed threads on Discord are still visible to our community. In practice, Gitcord sends a sea of new threads before we know it, as expected.

Despite Discord's large max thread capacity (1000), our current setup is not infinitely scalable (new threads are created but never destroyed). What we need is a way of deleting the thread from Discord without completely deleting the messages in the thread.

Our challenge

Our challenge is to write a slash command that is capable of converting Discord threads (messages, attachment links, reactions, and embeds) into an ASCII-compliant plaintext file sent to a special archive channel. One cool feature would be to make our custom plaintext output format human-readable yet simultaneously capable of being parsed back into their original data structures (desired behavior partially supported in Trends.