Get Guild Application Commands¶
-
ORCAcode discord_get_guild_application_commands(struct discord *client, u64_snowflake_t application_id, u64_snowflake_t guild_id, struct discord_application_command ***ret)¶
Fetch all of the guild commands of a given guild.
- Parameters
client – the client created with discord_init()
application_id – the unique id of the parent application
guild_id – the guild where the commands are located
ret – if successful, a null-terminated list of discord_application_command, that should be free’d with
discord_application_command_list_free()
- Returns
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary