Method: Discordrb::Channel#history
- Defined in:
- lib/discordrb/data.rb
#history(amount, before_id = nil, after_id = nil, around_id = nil) ⇒ Array<Message>
Retrieves some of this channel's message history.
1799 1800 1801 1802 |
# File 'lib/discordrb/data.rb', line 1799 def history(amount, before_id = nil, after_id = nil, around_id = nil) logs = API::Channel.(@bot.token, @id, amount, before_id, after_id, around_id) JSON.parse(logs).map { || Message.new(, @bot) } end |