Get Channel Message#
-
ORCAcode discord_get_channel_message(struct discord *client, u64_snowflake_t channel_id, u64_snowflake_t message_id, struct discord_message *ret)#
Get a specific message in the channel.
Note
If operating on a guild channel, this endpoint requires the ‘READ_MESSAGE_HISTORY’ permission to be present on the current user
- Parameters:
client – the client created with discord_init()
channel_id – the channel where the message resides
message_id – the message itself
ret – if successful, a discord_message that should be free’d with
discord_message_cleanup()
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary