public fun performGiphyAction(action: GiphyAction) { val message = action.message when (action) { is SendGiphy -> chatClient.sendGiphy(message) is ShuffleGiphy -> chatClient.shuffleGiphy(message) is CancelGiphy -> chatClient.cancelEphemeralMessage(message) }.exhaustive.enqueue() }
Executes one of the actions for the given ephemeral giphy message.