Create DM

ORCAcode discord_create_dm(struct discord *client, struct discord_create_dm_params *params, struct discord_channel *ret)

Create a new DM channel with a given user.

Warning

DMs should generally be initiated by a user action. If you open a significant amount of DMs too quickly, your bot may be rate limited or blocked from opening new ones

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

Warning

doxygenstruct: Cannot find class “discord_create_dm_params” in doxygen xml output for project “Orca” from directory: ../xml