Sync Guild Template#

ORCAcode discord_sync_guild_template(struct discord *client, u64_snowflake_t guild_id, char *code, struct discord_guild_template *ret)#

Syncs the template to the guild’s current state.

Note

Requires the MANAGE_GUILD permission

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

  • guild_id – the guild to sync the template from

  • code – the guild template code

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

Returns:

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