ArvinJA / scrape_discord

Scrape discord channels
27 stars 7 forks source link

Export chat history from a specific discord user #2

Open koblihh opened 6 years ago

koblihh commented 6 years ago

I was wondering if it would be possible to add an extra condition in your script to only fetch message history from a specific user on a discord server? (ie. scrape all messages by an arbitrary user_id , instead of channel_id. I am struggling to find a proper solution. I will be grateful for any help you can provide.

ArvinJA commented 6 years ago

Sounds like a decent enough idea. Might be a bit weird to only grab one person's messages though, since there's usually some context for everything? Do you want an option to get a user's message along with some amount of context? Anyway, I'm a bit busy now, but it's a good suggestion and I'll get to it when I have some more time. :)

koblihh commented 6 years ago

Thank you for your reply and apppreciate you looking into the suggestion. The option to get user's messages alone would be great, additionally if you want to add some context with it I suppose you can fetch messages by mentions <user_id> alongside, for instance.