Modify Guild Emoji#

ORCAcode discord_modify_guild_emoji(struct discord *client, u64_snowflake_t guild_id, u64_snowflake_t emoji_id, struct discord_modify_guild_emoji_params *params, struct discord_emoji *ret)#

Modify the given emoji.

Note

Fires a Guild Emojis Update event

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

  • guild_id – guild the emoji belongs to

  • emoji_id – the emoji to be modified

  • params – request parameters

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

Returns:

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

struct discord_modify_guild_emoji_params#

Methods

  • Initializer:

    • void discord_modify_guild_emoji_params_init(struct discord_modify_guild_emoji_params *)

  • Cleanup:

    • void discord_modify_guild_emoji_params_cleanup(struct discord_modify_guild_emoji_params *)

    • void discord_modify_guild_emoji_params_list_free(struct discord_modify_guild_emoji_params **)

  • JSON Decoder:

    • void discord_modify_guild_emoji_params_from_json(char *rbuf, size_t len, struct discord_modify_guild_emoji_params *)

    • void discord_modify_guild_emoji_params_list_from_json(char *rbuf, size_t len, struct discord_modify_guild_emoji_params ***)

  • JSON Encoder:

    • void discord_modify_guild_emoji_params_to_json(char *wbuf, size_t len, struct discord_modify_guild_emoji_params *)

    • void discord_modify_guild_emoji_params_list_to_json(char *wbuf, size_t len, struct discord_modify_guild_emoji_params **)

Public Members

char *name#
ja_u64 **roles#

roles for which this emoji will be whitelisted