Utils#

ORCAcode discord_disconnect_guild_member(struct discord *client, u64_snowflake_t guild_id, u64_snowflake_t user_id, struct discord_guild_member *ret)#

Disconnect a member from voice channel.

Parameters:
  • client – the client created with discord_init()

  • guild_id – the guild the member belongs to

  • user_id – the user to be disconnected

  • ret – if successful, a discord_member that should be free’d with discord_member_cleanup()

Returns:

ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary

void discord_presence_add_activity(struct discord_presence_status *presence, struct discord_activity *activity)#

Helper function to add presence activities.

This function is a wrapper over ntl_append2()