Programmatic access to discord

https://lemmy.world/post/19588900

Programmatic access to discord - Lemmy.World

I am trying to not use any Google services for notifications and so I’d like to make a script to send notifications via ntfy based on discord messages. How would I get access programmatically to my own discord account? Do they even support it? They have bots, but is their api for DMs?

It is likely not worth your effort as whatever you come up with will likely result in discord deactivating your account for breaking their ToS, or them breaking their API forcing you to constantly play catch-up.

This is why open communication protocols are so important. Email is still as ubiquitous as it is because it’s a protocol, not an API.

I personally think it would be less overall effort to get your friends to switch to an open protocol like matrix, or XMPP than it would playing cat and mouse with proprietary APIs. But you do you, I wish you the best of luck!

github.com/matrix-org/matrix-appservice-discord

It looks like there’s software to bridge it to Matrix. I have no idea whether that violates ToS. It does look like it’s getting development, though, so I can’t imagine that Discord has been cutting people off en masse for using it.

GitHub - matrix-org/matrix-appservice-discord: A bridge between Matrix and Discord.

A bridge between Matrix and Discord. Contribute to matrix-org/matrix-appservice-discord development by creating an account on GitHub.

GitHub