This is very much against TOS (selfbots are explicitly against it) and the only way you should be doing this is through the normal bot interface with community consent. Even then you could get in trouble with consent issues.

Even then that is probably against the developer policy & terms

> 20. Do not mine or scrape any data, content, or information available on or through Discord services (as defined in our Terms of Service).

https://support-dev.discord.com/hc/en-us/articles/8563934450... (point 20)