Discord API is currently thick server and thick client, as far as I understand. Have you had a chance to review the current state of the Matrix protocol, which is thin client and would be useful as an inspiration for the next API revision of Discord.