| 1 | # D++: A C++ Discord API Library for Bots |
| 2 | |
| 3 | ## What is D++ (DPP)? |
| 4 | |
| 5 | D++ is a lightweight and simple library for Discord written in modern C++. It is designed to cover as much of the API specification as possible and to have a incredibly small memory footprint, even when caching large amounts of data. |
| 6 | |
| 7 | It is created by the developer of [TriviaBot](https://triviabot.co.uk) and contributed to by a dedicated team of developers. |
| 8 | |
| 9 | *This project is in stable development and accepting PRs and feature requests — Don't be a stranger! If you want to contribute, just get in touch via [GitHub](https://github.com/brainboxdotcc/DPP) or our official [Discord server](https://discord.gg/dpp)!* |
| 10 | |
| 11 | <img src="code_editor.png" style="margin-top: 2rem; margin-bottom: 2rem"/><br /> |
| 12 | |
| 13 | ## Downloads |
| 14 | |
| 15 | The following downloads are for the most recent version: |
| 16 | |
| 17 | * [Source Code](https://github.com/brainboxdotcc/DPP) |
| 18 | * [x64 Linux .deb (64 bit Debian, Ubuntu etc)](https://dl.dpp.dev/latest) |
| 19 | * [x86 Linux .deb (32 bit Debian, Ubuntu etc)](https://dl.dpp.dev/latest/linux-i386) |
| 20 | * [x64 Linux .rpm (64 bit Redhat, CentOS etc)](https://dl.dpp.dev/latest/linux-x64/rpm) |
| 21 | * [x86 Linux .rpm (32 bit Redhat, CentOS etc)](https://dl.dpp.dev/latest/linux-i386/rpm) |
| 22 | * [x64 Windows (64 bit vs2019 release build)](https://dl.dpp.dev/latest/win64-release-vs2019) |
| 23 | * [x64 Windows (64 bit vs2022 release build)](https://dl.dpp.dev/latest/win64-release-vs2022) |
| 24 | * [x64 Windows (64 bit vs2019 debug build)](https://dl.dpp.dev/latest/win64-debug-vs2019) |
| 25 | * [x64 Windows (64 bit vs2022 debug build)](https://dl.dpp.dev/latest/win64-debug-vs2022) |
| 26 | * [ARM6 Linux .deb (32 bit Raspberry Pi 1, 2)](https://dl.dpp.dev/latest/linux-rpi-arm6) |
| 27 | * [ARM7 Linux .deb (32 bit Raspberry Pi 3, 4)](https://dl.dpp.dev/latest/linux-rpi-arm7hf) |
| 28 | * [ARM64 Linux .deb (64 bit Raspberry Pi 4, Smartphones)](https://dl.dpp.dev/latest/linux-rpi-arm64) |
| 29 | |
| 30 | You can find further releases in other architectures and formats or the source code on the [GitHub Repository](https://github.com/brainboxdotcc/DPP/releases). For a realtime JSON format list of all download links, click [here](https://dl.dpp.dev/json) |
| 31 | |
| 32 | ## Library features |
| 33 | |
| 34 | * Support for Discord API v10 |
| 35 | * Really small memory footprint |
| 36 | * Efficient caching system for guilds, channels, guild members, roles, users |
| 37 | * Sharding and clustering (Many shards, one process: specify the number of shards, or let the library decide) |
| 38 | * Highly optimised ETF (Erlang Term Format) support for very fast websocket throughput (*no other C++ Discord library has this!*) |
| 39 | * \ref slashcommands "Slash Commands/Interactions support" |
| 40 | * \ref soundboard "Voice support" (sending **and** receiving audio) |
| 41 | * The entire Discord API is available for use in the library |
| 42 | * Stable \ref buildwindows "Windows support" |
| 43 | * Ready-made compiled packages for Windows, Raspberry Pi (ARM64/ARM7/ARMv6), Debian x86/x64 and RPM based distributions |
| 44 | * Highly scalable for large amounts of guilds and users |
| 45 | |
| 46 | ## Supported Operating Systems |
| 47 | |
| 48 | ### Linux |
| 49 | The library runs ideally on **Linux**. |
| 50 | |
| 51 | ### Mac OS X, FreeBSD, and OpenBSD |
| 52 | The library is well-functional and stable on **Mac OS X**, **FreeBSD**, and **OpenBSD** too! |
| 53 | |
| 54 | ### Raspberry Pi |
| 55 | For running your bot on a **Raspberry Pi**, we offer a prebuilt .deb package for ARM64, ARM6, and ARM7 so that you do not have to wait for it to compile. |
| 56 | |
| 57 | ### Windows |
| 58 | **Windows** is well-supported with ready-made compiled DLL and LIB files, please check out our [Windows Bot Template repository](https://github.com/brainboxdotcc/windows-bot-template). The Windows Bot repository can be cloned and integrated immediately into any Visual Studio 2019 and 2022 project in a matter of minutes. |
| 59 | |
| 60 | ### Other OS |
| 61 | The library should work fine on other operating systems as well, and if you run a D++ bot on something not listed here, please let us know! |
| 62 | |
| 63 | ## Getting started |
| 64 | * [GitHub Repository](https://github.com/brainboxdotcc/DPP) |
| 65 | * [Discord Server](https://discord.gg/dpp) |
| 66 | * \ref frequently-asked-questions |
| 67 | * \ref installing |
| 68 | * \ref example-programs |
| 69 | * \ref glossary-of-common-discord-terms |
| 70 | |
| 71 | ## Architecture |
| 72 | * \ref clusters-shards-guilds |
| 73 | * \ref thread-model |
| 74 | |
| 75 | ## Learning Resources |
| 76 | * [C++ for JavaScript Developers](https://pawelgrzybek.com/cpp-for-javascript-developers/) |
| 77 | * [C++ In Four Hours](https://www.youtube.com/watch?v=vLnPwxZdW4Y&vl=en) |
| 78 |