Create Group DM#

ORCAcode discord_create_group_dm(struct discord *client, struct discord_create_group_dm_params *params, struct discord_channel *ret)#

Create a new group DM channel with multiple users.

Note

DMs created with this function will not be shown in the Discord client

Note

Limited to 10 active group DMs

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

  • params – the request parameters

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

Returns:

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

struct discord_create_group_dm_params#

Methods

  • Initializer:

    • void discord_create_group_dm_params_init(struct discord_create_group_dm_params *)

  • Cleanup:

    • void discord_create_group_dm_params_cleanup(struct discord_create_group_dm_params *)

    • void discord_create_group_dm_params_list_free(struct discord_create_group_dm_params **)

  • JSON Decoder:

    • void discord_create_group_dm_params_from_json(char *rbuf, size_t len, struct discord_create_group_dm_params *)

    • void discord_create_group_dm_params_list_from_json(char *rbuf, size_t len, struct discord_create_group_dm_params ***)

  • JSON Encoder:

    • void discord_create_group_dm_params_to_json(char *wbuf, size_t len, struct discord_create_group_dm_params *)

    • void discord_create_group_dm_params_list_to_json(char *wbuf, size_t len, struct discord_create_group_dm_params **)

Public Members

ja_str **access_tokens#

access tokens of users that have granted your app the gdm.join scope

ja_u64 **nicks#

a dictionary of user ids to their respective nicknames