Updating discord_set_presence function
@@ -553,6 +553,9 @@ discord_set_presence(struct discord *client,
struct discord_presence_status *presence)
{
memcpy(client->gw.id.presence, presence, sizeof *presence);
+ if (client->gw.session->is_ready) {
+ discord_gateway_send_presence_update(&client->gw);
+ }
}
int
