Get Reactions#

ORCAcode discord_get_reactions(struct discord *client, u64_snowflake_t channel_id, u64_snowflake_t message_id, u64_snowflake_t emoji_id, const char emoji_name[], struct discord_get_reactions_params *params, struct discord_user ***ret)#

Get a list of users that reacted with given emoji.

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

  • channel_id – the channel that the message belongs to

  • message_id – the message reacted to

  • emoji_id – the emoji id (leave as 0 if not a custom emoji)

  • emoji_name – the emoji name

  • params – request parameters

  • ret – if successful, a null-terminated list of discord_user, that should be free’d with discord_user_list_free()

Returns:

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

struct discord_get_reactions_params#

Methods

  • Initializer:

    • void discord_get_reactions_params_init(struct discord_get_reactions_params *)

  • Cleanup:

    • void discord_get_reactions_params_cleanup(struct discord_get_reactions_params *)

    • void discord_get_reactions_params_list_free(struct discord_get_reactions_params **)

  • JSON Decoder:

    • void discord_get_reactions_params_from_json(char *rbuf, size_t len, struct discord_get_reactions_params *)

    • void discord_get_reactions_params_list_from_json(char *rbuf, size_t len, struct discord_get_reactions_params ***)

  • JSON Encoder:

    • void discord_get_reactions_params_to_json(char *wbuf, size_t len, struct discord_get_reactions_params *)

    • void discord_get_reactions_params_list_to_json(char *wbuf, size_t len, struct discord_get_reactions_params **)

Public Members

u64_snowflake_t after#
int limit#