def history(amount, before_id = nil, after_id = nil, around_id = nil)
      logs = API::Channel.messages(@bot.token, @id, amount, before_id, after_id, around_id)
      JSON.parse(logs).map { |message| Message.new(message, @bot) }
    end
def history(amount, before_id = nil, after_id = nil, around_id = nil)
      logs = API::Channel.messages(@bot.token, @id, amount, before_id, after_id, around_id)
      JSON.parse(logs).map { |message| Message.new(message, @bot) }
    end
Retrieves some of this channel's message history.
 @param amount [Integer] How many messages to retrieve. This must be less than or equal to 100, if it is higher
   than 100 it will be treated as 100 on Discord's side.
 @param before_id [Integer] The ID of the most recent message the retrieval should start at, or nil if it should
   start at the current message.
 @param after_id [Integer] The ID of the oldest message the retrieval should start at, or nil if it should start
   as soon as possible with the specified amount.
 @param around_id [Integer] The ID of the message retrieval should start from, reading in both directions
 @example Count the number of messages in the last 50 messages that contain the letter 'e'.
   message_count = channel.history(50).count {|message| message.content.include? "e"}
 @example Get the last 10 messages before the provided message.
   last_ten_messages = channel.history(10, message.id)
 @return [Array<Message>] the retrieved messages.