Method: Discordrb::API.acknowledge_message
- Defined in:
- lib/discordrb/api.rb
.acknowledge_message(token, channel_id, message_id) ⇒ Object
Acknowledge that a message has been received The last acknowledged message will be sent in the ready packet, so this is an easy way to catch up on messages
271 272 273 274 275 276 277 278 279 280 |
# File 'lib/discordrb/api.rb', line 271 def (token, channel_id, ) request( :channels_cid_messages_mid_ack, nil, # This endpoint is unavailable for bot accounts and thus isn't subject to its rate limit requirements. :post, "#{api_base}/channels/#{channel_id}/messages/#{}/ack", nil, Authorization: token ) end |