libdiscord was developed against the v6 API, which has been depreciated by Discord. Functionality of libdiscord in the future is therefore not guaranteed.
Developers interested in using C to interact with Discord are encouraged to look at alternative libraries such as concord or orca.
A Discord library written in C. Not production ready.
The goal of this library currently is:
- be easy to use
See building
Libdiscord was tested against Ubuntu 18.04, Raspbian, and macOS Catalina. It has been previously tested to work on ArchLinux, FreeBSD, OpenBSD, and Debian. The library should build and run on systems that libcurl and libwebsockets supports. Windows has not been tested, but there's nothing preventing libdiscord from being able to run on Windows.
See example_bots for some sample bots.
Intended for development use only.
See the todo list for a list of things that will be implemented at some point. Major features and fixes in development for the first point release (v0.3) are:
- Reconnection logic
- Jansson memory leaks and other show-stopping bugs