createReaction

inline suspend fun ChannelApi.createReaction(channelId: Snowflake, messageId: Snowflake, emoji: String): Boolean(source)

Create a reaction for the message. This endpoint requires the 'READ_MESSAGE_HISTORY' permission to be present on the current user. Additionally, if nobody else has reacted to the message using this emoji, this endpoint requires the 'ADD_REACTIONS' permission to be present on the current user. Returns a 204 empty response on success.

Discord API Reference

Parameters

channelId

Channel id to retrieve

messageId

Message id to retrieve

emoji

Unicode emoji