Create Message

ORCAcode discord_create_message(struct discord *client, u64_snowflake_t channel_id, struct discord_create_message_params *params, struct discord_message *ret)

Post a message to a guild text or DM channel.

Note

Fires a Message Create event

Parameters
  • client – the client created with discord_init()

  • channel_id – the channel to send the message at

  • params – request parameters

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

Returns

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

Warning

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