Earlier quoted context omitted.
Would the TOS even prevent something like joining a guild, downloading all messages, then leaving?
User bots (including hacked clients) are officially banned by the TOS, which addresses that concern. The only acceptable API usage is via bots that server owners choose to invite. And while it might be legally OK (if the bot's own TOS says it), I promise no server owner is expecting an invited bot to slurp up every message for use in a data set, whether that be for academic purposes or a potential stalking/"dirt" dat…
> B. API Data Sharing & Retention
> You will not share API Data with any third party, except in the following circumstances, subject to compliance with the Terms and applicable laws and regulations: (i) with a Service Provider; (ii) to the extent required under applicable laws or regulations; and (iii) when a user of your Application expressly directs you to share their API Data with the third party (and you will provide us proof thereof upon request).
https://support-dev.discord.com/hc/en-us/articles/8562894815...