Get Guild Channels#

ORCAcode discord_get_guild_channels(struct discord *client, u64_snowflake_t guild_id, struct discord_channel ***ret)#

Fetch channels from given guild. Does not include threads.

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

  • guild_id – id of guild to fetch channels from

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

Returns:

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