def invites
      raise 'Tried to request invites from a non-server channel' unless server

      invites = JSON.parse(API::Channel.invites(@bot.token, @id))
      invites.map { |invite_data| Invite.new(invite_data, @bot) }
    end
def invites
      raise 'Tried to request invites from a non-server channel' unless server

      invites = JSON.parse(API::Channel.invites(@bot.token, @id))
      invites.map { |invite_data| Invite.new(invite_data, @bot) }
    end
Requests a list of Invites to the channel.
 @return [Array<Invite>] invites to the channel.