Get Channel#
-
ORCAcode discord_get_channel(struct discord *client, u64_snowflake_t channel_id, struct discord_channel *ret)#
Get channel from given id.
Note
If the channel is a thread, a thread member object is included in the returned result
- Parameters:
client – the client created with discord_init()
channel_id – the channel to be retrieved
ret – if successful, a discord_channel that should be free’d with
discord_channel_cleanup()
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary