If you have permission, nobody has been suspended for using a dedicated discord bot (one where you must be an admin to invite to a server) to run this Discord Chat Exporter, at least based on the GitHub issues/discussions of that repo.
I don't think anyone believe otherwise. People still choose it because the feature set it provides addresses their needs and makes online chat, voice, and live streaming to friends a wonderful experience.
For 99.9% of users, they don't need to worry about Discord terminating their account or their friends' account. If Discord somehow fumbles this by randomly suspending peoples' accounts for no reason whatsoever, and on such a wide scale that everyone will know a friend affected by this, they'll quickly lose marketshare.
Perhaps if you directly contacted support and said "hey I am using a log bot come and get me" but in no other circumstance is a reasonable fear. They have no way to track what you do with on message events once they have been delivered.
https://github.com/Tyrrrz/DiscordChatExporter
But beware -- it can result in account termination!
https://support.discord.com/hc/en-us/articles/115002192352-A...